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