ops(ci): add release job and update node version

This commit is contained in:
Elysia
2026-02-15 00:09:29 +08:00
parent ed92145f91
commit 7aae00e272

View File

@@ -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