-
Notifications
You must be signed in to change notification settings - Fork 7
86 lines (71 loc) · 2.32 KB
/
deploy.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
82
83
84
85
86
name: deploy
on:
push:
branches:
- "**"
jobs:
binary:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os: [ windows-latest, ubuntu-20.04]
steps:
- name: 🐙 Checkout GitHub repo (+ download lfs dependencies)
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: 🔗 Install wget for Windows
if: matrix.os == 'windows-latest'
run: choco install wget --no-progress
- name: 💚 Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.1
- name: 💚 Install dependencies
run: npm install
working-directory: webapp
- name: 💚 Build webapp
run: bash ./build-front.sh
working-directory: scripts
env:
NODE_OPTIONS: --max-old-space-size=8192
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: 🐍 Install development dependencies
run: |
python -m pip install --upgrade pip
pip install pydantic --no-binary pydantic
pip install -r requirements-dev.txt
- name: 🐍 Install Windows dependencies
if: matrix.os == 'windows-latest'
run: pip install -r requirements-windows.txt
- name: 📦 Packaging
run: bash ./package_antares_web.sh
working-directory: scripts
- name: Add installer to package
shell: bash
run: |
pip install hatch
./package_antares_installer.sh
working-directory: scripts
- name: 📜️ Copy changelog file
run: |
cp docs/CHANGELOG.md dist/package/CHANGELOG.md
- name: 📦 Archive Antares Desktop for Windows
if: matrix.os == 'windows-latest'
run: 7z a AntaresWeb.zip *
working-directory: dist/package
- name: 📦 Archive Antares Desktop for Ubuntu
# this is the only way to preserve file permission and symlinks
if: matrix.os != 'windows-latest'
run: zip -r --symlinks AntaresWeb.zip *
working-directory: dist/package
- name: 🚀 Upload binaries
uses: actions/upload-artifact@v4
with:
name: AntaresWeb-${{ matrix.os }}-pkg
path: dist/package/AntaresWeb.zip