Replace GitHub Release with Gitea Package Registry upload
Some checks failed
Build / build (push) Failing after 1m11s
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:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -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
|
|
Reference in New Issue
Block a user