Skip to content

Commit 1c7f9c6

Browse files
authored
Merge pull request transformerlab#362 from transformerlab/fix/simpler_webapp_packaging
Simplify command to publish webapp zip file on release.
2 parents c02118e + a3c97b2 commit 1c7f9c6

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ jobs:
3030
npm run postinstall
3131
npm run build
3232
33-
- name: Zip static web assets
34-
run: |
35-
zip -r transformerlab-web.zip release/cloud/
36-
3733
- name: copy p8 key to file
3834
run: |
3935
echo "${{ secrets.APPLE_API_KEY_P8_FILE }}" > api_key.p8
@@ -52,11 +48,12 @@ jobs:
5248
run: |
5349
npm exec electron-builder -- --publish always --win --mac --linux
5450
55-
- name: Upload static assets to GitHub Release
56-
uses: softprops/action-gh-release@v1
57-
with:
58-
tag_name: ${{ github.ref_name }}
59-
files: transformerlab-web.zip
51+
- name: Zip and upload static web assets
52+
run: |
53+
zip -r transformerlab-web.zip release/cloud/
54+
gh release upload ${{ github.ref_name }} transformerlab-web.zip
6055
env:
6156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
shell: bash
58+
6259

0 commit comments

Comments
 (0)