This commit is contained in:
parent
f79cc2480c
commit
b26f3d3244
35
.gitea/workflows/build.yml
Normal file
35
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,35 @@
|
||||
name: Build Python Executable
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: "0 0 * * 0" # Runs weekly on Sunday at midnight UTC
|
||||
|
||||
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/
|
Loading…
x
Reference in New Issue
Block a user