-
Notifications
You must be signed in to change notification settings - Fork 7
80 lines (66 loc) · 2.19 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
name: deploy
on:
push:
branches:
- "master"
- "hotfix/**"
- "fix/fix-desktop-changelog"
jobs:
binary:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os: [ windows-latest, ubuntu-20.04, ubuntu-22.04]
steps:
- name: 🐙 Checkout GitHub repo (+ download lfs dependencies)
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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.8
- 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: 📜️ 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