diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5fede9..e0077ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file + - 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" \ No newline at end of file