v0.4.0 #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bundle App | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- shell: pwsh | |
run: scripts/update_front.ps1 | |
- shell: pwsh | |
run: scripts/update_guide.ps1 | |
- shell: pwsh | |
run: scripts/bundle_windows.ps1 | |
- run: | | |
mkdir dist/ | |
mv "back/dist/whombat.zip" "dist/whombat-windows-${{ github.ref_name }}.zip" | |
- uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: "dist/whombat-windows-${{ github.ref_name }}.zip" | |
build-ubuntu: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- run: npm cache clean --force | |
- run: make build-frontend | |
- run: make build-guide | |
- run: bash scripts/bundle_linux.sh | |
- run: | | |
mkdir dist/ | |
mv back/dist/whombat.zip "dist/whombat-ubuntu-${{ github.ref_name }}.zip" | |
- uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: "dist/whombat-ubuntu-${{ github.ref_name }}.zip" | |
build-macos: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- run: make build-frontend | |
- run: make build-guide | |
- run: bash scripts/bundle_macos.sh | |
- run: | | |
mkdir dist/ | |
mv back/dist/whombat.zip "dist/whombat-macos-${{ github.ref_name }}.zip" | |
- uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: "dist/whombat-macos-${{ github.ref_name }}.zip" |