Skip to content

Commit 13ba015

Browse files
committed
ci: add upload-release job to CI workflow for handling release artifacts
1 parent 23e5272 commit 13ba015

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,25 @@ jobs:
245245
- run: npm publish
246246
env:
247247
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
248+
249+
upload-release:
250+
needs: build
251+
runs-on: ubuntu-latest
252+
if: github.event_name == 'release'
253+
permissions:
254+
contents: write
255+
steps:
256+
- name: Download Artifact
257+
uses: actions/download-artifact@v4
258+
with:
259+
name: dist
260+
path: dist
261+
262+
- name: Zip dist directory
263+
run: zip -r dist.zip dist
264+
265+
- name: Upload Release Asset
266+
uses: svenstaro/upload-release-action@v2
267+
with:
268+
file: dist.zip
269+
overwrite: true

0 commit comments

Comments
 (0)