Skip to content

build(deploy): correct the GitHub deploy workflow to allow legacy dep… #632

build(deploy): correct the GitHub deploy workflow to allow legacy dep…

build(deploy): correct the GitHub deploy workflow to allow legacy dep… #632

Workflow file for this run

#file: noinspection YAMLSchemaValidation
name: deploy
on:
push:
branches:
- "master"
- "hotfix/**"
- "release/2.15"
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@v3
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@v3
with:
node-version: 18.16.1
- name: 💚 Install dependencies
run: npm install --legacy-peer-deps
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@v1
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: 📜 Install changelog requirements
run: npm install -g auto-changelog
- name: 📜️ Generate changelog file
run: |
auto-changelog -l false --hide-empty-releases
mv CHANGELOG.md dist/package/CHANGELOG.md
- name: 📦 Archive Antares Desktop + Worker for Windows
if: matrix.os == 'windows-latest'
run: 7z a AntaresWeb.zip *
working-directory: dist/package
- name: 📦 Archive Antares Desktop + Worker for Ubuntu
# this is the only way to preserve file permission and symlinks
if: matrix.os == 'ubuntu-20.04'
run: zip -r --symlinks AntaresWeb.zip *
working-directory: dist/package
- name: 🚀 Upload binaries
uses: actions/upload-artifact@v3
with:
name: AntaresWeb-${{ matrix.os }}-pkg
path: dist/package/AntaresWeb.zip