Skip to content

Commit

Permalink
add new zip target
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Aug 15, 2023
1 parent 354d29d commit e37e3d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,21 @@ jobs:
- name: Build artifacts
uses: actions/setup-node@v3
- run: npm ci
- run: npm run build --if-present
- run: npm run zip --if-present

- name: Upload dist
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/*
path: |
dist/*.js
dist/*.map
dist/*.html
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
with:
prerelease: false
files: |
dist/WeGA-WebApp-Mirador.zip
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"scripts": {
"serve": "parcel",
"build": "parcel build src/index.html --no-content-hash",
"prezip": "npm run build",
"zip": "zip -r dist/WeGA-WebApp-Mirador.zip dist/*.js dist/*.map dist/*.html",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Peter Stadler",
Expand Down

0 comments on commit e37e3d5

Please sign in to comment.