Replace GitHub Release with Gitea Package Registry upload
Some checks failed
Build / build (push) Failing after 1m11s

Switch from GitHub Release upload to direct Gitea Package Registry deployment for Debian package, using curl and authentication via secrets
This commit is contained in:
2025-01-28 05:54:25 +00:00
parent 49305e089f
commit 22740f3841

View File

@@ -56,12 +56,9 @@ jobs:
name: cpu-check-deb name: cpu-check-deb
path: build/*.deb path: build/*.deb
- name: Upload to GitHub Release - name: Upload to Gitea Package Registry
uses: softprops/action-gh-release@v2 if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with: run: |
token: ${{ secrets.GITHUB_TOKEN }} curl --user "${{ secrets.GITEA_USERNAME }}:${{ secrets.GITEA_TOKEN }}" \
tag_name: v1.0.0 --upload-file build/cpu-check_1.0.0-1_amd64.deb \
name: Release v1.0.0 "https://gitea.ericxliu.me/api/packages/${{ secrets.GITEA_USERNAME }}/debian/pool/stable/main/upload"
files: build/*.deb
draft: true
prerelease: true