From 7aae00e2722a54414d9577a07eb4172087b22d27 Mon Sep 17 00:00:00 2001 From: Elysia Date: Sun, 15 Feb 2026 00:09:29 +0800 Subject: [PATCH] ops(ci): add release job and update node version --- .github/workflows/build.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88e6cb40..6dcf3a08 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: 20.19.2 + node-version: 20 - name: Install Dependencies run: | @@ -102,12 +102,21 @@ jobs: path: release/**/*.${{ matrix.package }} retention-days: 5 + release: + needs: build + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + steps: + - name: Download all artifacts + uses: actions/download-artifact@v7 + with: + path: artifacts + - name: Upload to GitHub Release - if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref_name }} files: | - release/**/*.deb - release/**/*.rpm + artifacts/**/*.deb + artifacts/**/*.rpm generate_release_notes: true \ No newline at end of file