-
Notifications
You must be signed in to change notification settings - Fork 5
77 lines (62 loc) · 2.02 KB
/
bundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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-app:
name: "Bundle App"
needs: [build-user-guide, build-frontend]
strategy:
fail-fast: false
matrix:
python-version:
- "3.12"
os:
- ubuntu-latest
- windows-latest
- macos-11
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Retrieve built frontend
uses: actions/download-artifact@v4
with:
name: frontend
path: back/src/whombat/statics/
- name: Retrieve built user guide
uses: actions/download-artifact@v4
with:
name: user_guide
path: back/src/whombat/user_guide/
- name: Bundle app (Windows)
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
run: |
scripts/bundle_windows.ps1
mkdir dist/
mv "back/dist/whombat.zip" "dist/whombat-${{ matrix.os }}-${{ github.ref_name }}.zip"
- name: Bundle app (Linux)
if: ${{ matrix.os == 'linux-latest' }}
run: |
bash scripts/bundle_linux.sh
mkdir dist/
mv back/dist/whombat.zip "dist/whombat-${{ matrix.os }}-${{ github.ref_name }}.zip"
- name: Bundle app (macOS)
if: ${{ matrix.os == 'macos-11' }}
run: |
bash scripts/bundle_macos.sh
mkdir dist/
mv back/dist/whombat.zip "dist/whombat-${{ matrix.os }}-${{ github.ref_name }}.zip"
- name: Upload release
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "dist/whombat-${{ matrix.os }}-${{ github.ref_name }}.zip"