Skip to content

Commit

Permalink
ci: add upload-release job to CI workflow for handling release artifa…
Browse files Browse the repository at this point in the history
…cts (#8)
  • Loading branch information
rwv authored Dec 31, 2024
1 parent b8961ee commit 54c03e8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,25 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

upload-release:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'release'
permissions:
contents: write
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Zip dist directory
run: zip -r dist.zip dist

- name: Upload Release Asset
uses: svenstaro/upload-release-action@v2
with:
file: dist.zip
overwrite: true

0 comments on commit 54c03e8

Please sign in to comment.