Publish EXE to Gitea generic package registry
Some checks failed
Build Windows EXE / build (push) Failing after 46s
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>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user