diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93fc20e..649e341 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: push: tags: # this is a glob, not a regexp - - "[0-9]*" + - "*" jobs: source: runs-on: ubuntu-latest @@ -32,7 +32,21 @@ jobs: - name: Build release run: make dist - - name: Publish GitHub release - uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9 + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 with: - filename: "cockpit-sensors.tar.xz" + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: cockpit-sensors.tar.xz + asset_name: cockpit-sensors.tar.xz + tag: ${{ github.ref }} + + - name: Build Deb release + run: make deb + + - name: Upload Deb binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: cockpit-sensors.deb + asset_name: cockpit-sensors.deb + tag: ${{ github.ref }}