Some checks failed
Build Windows EXE / build (push) Failing after 46s
Replaces upload-artifact with a curl PUT to the generic registry. Each build is versioned by run number (e.g. es24n-conf-windows/42/es24n_conf.exe). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
824 B
YAML
33 lines
824 B
YAML
name: Build Windows EXE
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
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: Publish to Gitea generic registry
|
|
run: |
|
|
curl.exe --fail --user "${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}" `
|
|
--upload-file dist\es24n_conf.exe `
|
|
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/es24n-conf-windows/${{ github.run_number }}/es24n_conf.exe"
|