v2.13.1 (2024-06-09) #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |