37 lines
876 B
YAML
37 lines
876 B
YAML
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: runner # 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: Install Dependencies and Setup Virtual Environment
|
|
run: python setup.py
|
|
|
|
- name: Activate Virtual Environment and Build Executable
|
|
run: |
|
|
source venv/bin/activate
|
|
python build.py
|
|
|
|
- name: Upload Build Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: built-executable
|
|
path: dist/
|