From b26f3d324488e1689cdd0d79a95471ebb6c2b4b4 Mon Sep 17 00:00:00 2001 From: Rim Date: Fri, 28 Feb 2025 15:51:39 -0500 Subject: [PATCH] feat(): add build.yml --- .gitea/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..ea7e138 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -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/ \ No newline at end of file