From f9a0b4d00b851546f756a71bd65f4b72a37922fb Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Mon, 5 Feb 2024 18:16:08 -0300 Subject: [PATCH 1/4] fix: test copy deb --- .github/workflows/release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93fc20e..eaa8fed 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 @@ -36,3 +36,14 @@ jobs: uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9 with: filename: "cockpit-sensors.tar.xz" + + - name: Build Deb release + run: make deb + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/release/cockpit-sensors.deb + asset_name: cockpit-sensors.deb + tag: ${{ github.ref }} From 458bbe82b34f0da035bced3cf51746ff5d09def1 Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Mon, 5 Feb 2024 18:19:19 -0300 Subject: [PATCH 2/4] fix release --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eaa8fed..677e0ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,11 +32,6 @@ jobs: - name: Build release run: make dist - - name: Publish GitHub release - uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9 - with: - filename: "cockpit-sensors.tar.xz" - - name: Build Deb release run: make deb @@ -47,3 +42,8 @@ jobs: file: target/release/cockpit-sensors.deb asset_name: cockpit-sensors.deb tag: ${{ github.ref }} + + - name: Publish GitHub release + uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9 + with: + filename: "cockpit-sensors.tar.xz" From 2622bcf54e7de5e9af9680dddeda50a869ee8efb Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Mon, 5 Feb 2024 18:22:11 -0300 Subject: [PATCH 3/4] fix: deb file --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 677e0ce..a01b47a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: target/release/cockpit-sensors.deb + file: cockpit-sensors.deb asset_name: cockpit-sensors.deb tag: ${{ github.ref }} From f5d4ccad993229e57dd8813ed5467c2688360407 Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Mon, 5 Feb 2024 18:25:32 -0300 Subject: [PATCH 4/4] fix: upload actions --- .github/workflows/release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a01b47a..649e341 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,18 +32,21 @@ jobs: - name: Build release run: make dist + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + 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 binaries to release + - 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 }} - - - name: Publish GitHub release - uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9 - with: - filename: "cockpit-sensors.tar.xz"