Merge pull request #362 from transformerlab/fix/simpler_webapp_packaging

Simplify command to publish webapp zip file on release.
This commit is contained in:
Tony Salomone
2025-04-11 08:58:13 -04:00
committed by GitHub

View File

@@ -30,10 +30,6 @@ jobs:
npm run postinstall
npm run build
- name: Zip static web assets
run: |
zip -r transformerlab-web.zip release/cloud/
- name: copy p8 key to file
run: |
echo "${{ secrets.APPLE_API_KEY_P8_FILE }}" > api_key.p8
@@ -52,11 +48,12 @@ jobs:
run: |
npm exec electron-builder -- --publish always --win --mac --linux
- name: Upload static assets to GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: transformerlab-web.zip
- name: Zip and upload static web assets
run: |
zip -r transformerlab-web.zip release/cloud/
gh release upload ${{ github.ref_name }} transformerlab-web.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash