Skip to content

Commit

Permalink
feat(gh-actions): add build artifacts generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bandantonio committed Jun 28, 2024
1 parent adb129d commit dc41dc8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ jobs:
if: steps.cache-node-modules.outcome == 'success'
run: npm run build

- name: Upload build assets
uses: actions/upload-artifact@v4
if: steps.build_plugin.outcome == 'success'
with:
name: build-assets
path: |
main.js
manifest.json
styles.css
retention-days: 3

- name: 📦 Create release
uses: softprops/action-gh-release@v1
if: steps.build_plugin.outcome == 'success' && contains(github.ref, 'refs/tags/')
Expand Down

0 comments on commit dc41dc8

Please sign in to comment.