JacobiClark is building a linux release for SODA #579
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: Build-and-deploy-linux | |
run-name: ${{ github.actor }} is building a linux release for SODA | |
on: | |
push: | |
branches: | |
- staging | |
jobs: | |
deploy-on-linux: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
activate-environment: env-electron-python | |
environment-file: tools/anaconda-env/environment-Linux.yml | |
auto-update-conda: true | |
auto-activate-base: false | |
- run: | | |
conda activate env-electron-python | |
conda info | |
conda list | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18.14.0" | |
- name: Install package.json modules and their dependencies | |
run: npm install --ignore-scripts | |
- name: Build the python server executable | |
run: | | |
npm run python-onefile-build-unix | |
- name: Deploy the app to GitHub | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm run deploy-linux |