Merge branch 'dev' into try-windows-desktop-for-311 #872
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |