Skip to content

Bundle App

Bundle App #28

Workflow file for this run

name: Bundle App
on:
release:
types: [published]
jobs:
build-user-guide:
uses: mbsantiago/whombat/.github/workflows/build_user_guide.yml@dev
build-frontend:
uses: mbsantiago/whombat/.github/workflows/build_frontend.yml@dev
build-windows:
runs-on: windows-latest
needs: [build-user-guide, build-frontend]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/download-artifact@v4
with:
name: frontend
path: back/src/whombat/statics/
- uses: actions/download-artifact@v4
with:
name: user_guide
path: back/src/whombat/user_guide/
- 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
needs: [build-user-guide, build-frontend]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/download-artifact@v4
with:
name: frontend
path: back/src/whombat/statics/
- uses: actions/download-artifact@v4
with:
name: user_guide
path: back/src/whombat/user_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
needs: [build-user-guide, build-frontend]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/download-artifact@v4
with:
name: frontend
path: back/src/whombat/statics/
- uses: actions/download-artifact@v4
with:
name: user_guide
path: back/src/whombat/user_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"