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"