45 lines
1.1 KiB
YAML
Raw Normal View History

2025-02-28 16:43:24 -05:00
name: Build Python Executable
on:
push:
branches:
- main
schedule:
# - cron: "0 0 * * 0" # Runs weekly on Sunday at midnight UTC
- cron: "*/1 * * * *" # Runs every 1 minute
jobs:
build:
runs-on: ubuntu-latest # Matches the label you assigned to your Gitea runner
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Python 3.9.13
uses: actions/setup-python@v4
with:
python-version: "3.9.13"
- name: Create virtual environment
run: |
python3.9 -m venv venv
python --version
- name: Install dependencies
run: |
source venv/bin/activate
python --version
pip install aiohttp
pip install zope.interface
pip install pip wheel build ./deps/cod_api-2.0.2-py3-none-any.whl
pip install pyinstaller==6.0.0
pip uninstall enum34 -y
python build.py
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: built-executable
path: dist/