diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e0339a..3f1e184 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ master ] +env: + PKG_VERSION: "2.0.0" + PKG_RELEASE: "1" + jobs: build: runs-on: ubuntu-latest @@ -38,8 +42,8 @@ jobs: run: | cd build sudo checkinstall --pkgname=cpu-check \ - --pkgversion=2.0.0 \ - --pkgrelease=1 \ + --pkgversion=${{ env.PKG_VERSION }} \ + --pkgrelease=${{ env.PKG_RELEASE }} \ --maintainer="maintainer@example.com" \ --requires="libabsl-dev" \ --default \ @@ -59,6 +63,6 @@ jobs: - 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://git.ericxliu.me/api/packages/${{ secrets.GITEA_USERNAME }}/debian/pool/bionic/main/upload" \ No newline at end of file + curl --user "eric:df299a6e592a8bd829d018b7816e76d03756408d" \ + --upload-file build/cpu-check_${{ env.PKG_VERSION }}-${{ env.PKG_RELEASE }}_amd64.deb \ + "https://git.ericxliu.me/api/packages/eric/debian/pool/bionic/main/upload" \ No newline at end of file