Skip to content

feat: 🔖 v1.1.0

feat: 🔖 v1.1.0 #3

Workflow file for this run

name: Release Electron App
on:
push:
tags: ["v*"]
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: frontend
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python dependencies
working-directory: .
shell: bash
run: |
python -m pip install --upgrade pip
if [ "$RUNNER_OS" == "macOS" ]; then
pip install pyinstaller
pip install -r requirements.txt
else
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install pyinstaller
pip install -r requirements.txt
fi
- name: Build Python backend with PyInstaller
working-directory: .
shell: bash
run: |
pyinstaller --name api-backend --onefile api/main.py
mkdir -p frontend/bin
cp dist/api-backend* frontend/bin/
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Build & publish
run: npx electron-builder --publish always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}