Skip to content

Hardcoded dependencies into the runner #11

Hardcoded dependencies into the runner

Hardcoded dependencies into the runner #11

name: Build and Release for Windows
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }} # Using GH_TOKEN to checkout private submodules if any
- name: Setup SSH Key
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.SSH_DEPLOY_KEY }} # Use the name of your secret here
- name: Ensure .ssh Directory Exists
run: |
mkdir $env:USERPROFILE\.ssh -Force
- name: Update known hosts
run: |
ssh-keygen -R github.com
ssh-keyscan github.com >> $env:USERPROFILE\.ssh\known_hosts
shell: powershell
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install pyinstaller
pip install flet # Make sure to install Flet, not PyInstaller if you are using flet to pack
pip install mpmath
pip install numpy
pip install numba
pip install scipy
pip install qutip
pip install matplotlib
pip install plotly
pip install jinja2
pip install toml
- name: Build with PyInstaller
run: |
pyinstaller quasi.spec
dir dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: packaged-app
path: dist/ # Adjust this path based on where PyInstaller outputs your application
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: packaged-app
path: output/ # Make sure this matches the upload path
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: output/* # Ensure this path matches where the files are downloaded
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # This token is used to create the release