From 101173b18e2d26fd3d9917e46ea7b2f44267f3ae Mon Sep 17 00:00:00 2001 From: scott Date: Thu, 16 Apr 2026 17:33:52 -0400 Subject: [PATCH] Add Gitea Actions workflow to build Windows EXE Builds on every push to main and on release publication. Uploads the artifact on every build; attaches es24n_conf.exe directly to any published release. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/build.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 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..2321500 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,43 @@ +name: Build Windows EXE + +on: + push: + branches: [main] + release: + types: [published] + +jobs: + build: + runs-on: windows + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Build EXE + run: pyinstaller es24n_conf.spec + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: es24n_conf-windows + path: dist/es24n_conf.exe + + - name: Attach EXE to release + if: github.event_name == 'release' + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: dist/es24n_conf.exe + asset_name: es24n_conf.exe + asset_content_type: application/octet-stream