Skip to content

Commit ad18ed3

Browse files
committed
Create and post a .zip file of web assets when we publish a build.
1 parent cbeba52 commit ad18ed3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
npm run postinstall
3131
npm run build
3232
33+
- name: Zip static web assets
34+
run: |
35+
zip -r transformer-lab-web.zip release/cloud/
36+
3337
- name: copy p8 key to file
3438
run: |
3539
echo "${{ secrets.APPLE_API_KEY_P8_FILE }}" > api_key.p8
@@ -47,3 +51,11 @@ jobs:
4751
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4852
run: |
4953
npm exec electron-builder -- --publish always --win --mac --linux
54+
55+
- name: Upload static assets to GitHub Release
56+
uses: softprops/action-gh-release@v1
57+
with:
58+
files: transformer-lab-web.zip
59+
env:
60+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+

0 commit comments

Comments
 (0)