From 7e42fb232dba4293439cdcd4415b8541e3d247af Mon Sep 17 00:00:00 2001 From: scott Date: Thu, 16 Apr 2026 18:11:12 -0400 Subject: [PATCH] Publish EXE to Gitea generic package registry 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 --- .gitea/workflows/build.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 5ece359..b942f9e 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -25,19 +25,8 @@ jobs: - name: Build EXE run: pyinstaller es24n_conf.spec - - name: Upload artifact - uses: actions/upload-artifact@v3 - 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 + - 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"