-
Notifications
You must be signed in to change notification settings - Fork 7
81 lines (77 loc) · 2.55 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
78
79
80
81
on:
push:
branches:
- "releases/**"
jobs:
# build-windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# - run: pip install -r requirements.txt pyinstaller sphinx
# sphinx-autobuild sphinx-book-theme
# - run: sphinx-build -b html 'docs/source' 'docs/build'
# - run: pyinstaller
# --add-data "whombat/migrations;whombat/migrations"
# --add-data "whombat/static;whombat/static"
# --add-data "whombat/templates;whombat/templates"
# --add-data "docs/build;docs/build"
# --hidden-import "logging.config"
# --hidden-import "passlib.handlers.bcrypt"
# --onefile app.py
# - run: mv "dist/app.exe" "dist/whombat-windows-${{ github.ref_name }}.exe"
# - uses: shogo82148/actions-upload-release-asset@v1
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: 'dist/whombat-windows-${{ github.ref_name }}.exe'
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@v1
with:
node-version: 21
- run:
make build-frontend
- run:
make build-guide
- run:
make bundle-pyinstaller
- run: |
mkdir dist/
chmod +x "back/dist/whombat"
mv back/dist/whombat "dist/whombat-ubuntu-${{ github.ref_name }}"
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "dist/whombat-ubuntus-${{ github.ref_name }}"
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@v1
with:
node-version: 21
- run:
make build-frontend
- run:
make build-guide
- run:
make bundle-pyinstaller
- run: |
mkdir dist/
chmod +x "back/dist/whombat"
mv back/dist/whombat "dist/whombat-macos-${{ github.ref_name }}"
- uses: shogo82148/actions-upload-release-asset@v1
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "dist/whombat-macos-${{ github.ref_name }}"