Skip to content

Use Python 3.11

Use Python 3.11 #15

Workflow file for this run

name: Build
on:
push:
paths:
- client/*
- .github/workflows/build.yml
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install requirements
run: |
cd client
python -m venv .venv
. ./.venv/Scripts/activate
pip install -r ./requirements.txt
- name: Create srvrcfg.py
run: |
echo "SERVERURL = \"${{secrets.SERVERURL}}\"
TIMEOUT = 3
headers = {
"authorization": "Bearer ${{secrets.ACCESS_TOKEN}}"
}" > client/srvrcfg.py
ls client
- name: Package Application
run: |
cd client
. ./.venv/Scripts/activate
python ./build-exe.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: generator
path: client/dist/generator.exe