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
|
||||
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"
|
Reference in New Issue
Block a user