Skip to content

Commit

Permalink
Add action for uploading dist/ on release
Browse files Browse the repository at this point in the history
  • Loading branch information
abaumg authored Jun 9, 2024
1 parent 976bb40 commit 35d55b5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/upload-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Upload dist/

on:
release:
types: [created]

jobs:
upload-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install
- run: npm run build
- run: zip -r $GITHUB_REF_NAME-dist.zip dist/
- run: gh release upload $GITHUB_REF_NAME $GITHUB_REF_NAME-dist.zip
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 35d55b5

Please sign in to comment.