From 775ad730b92c9869a37d334c26ea546aaffc39ed Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Mon, 5 Feb 2024 21:58:29 +0000 Subject: [PATCH 1/3] test: rpm release --- .github/workflows/release.yml | 14 ++++++++++++++ packaging/cockpit-sensors.spec.in | 1 + 2 files changed, 15 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 649e341..632a604 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,3 +50,17 @@ jobs: file: cockpit-sensors.deb asset_name: cockpit-sensors.deb tag: ${{ github.ref }} + + - name: Install RPM + run: apt install rpm + + - name: Build RPM + run: make rpm + + - name: Upload RPM binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: cockpit-sensors.rpm + asset_name: cockpit-sensors.rpm + tag: ${{ github.ref }} \ No newline at end of file diff --git a/packaging/cockpit-sensors.spec.in b/packaging/cockpit-sensors.spec.in index c87f9ce..731bc68 100644 --- a/packaging/cockpit-sensors.spec.in +++ b/packaging/cockpit-sensors.spec.in @@ -1,3 +1,4 @@ +%define _rpmfilename %%{NAME}.rpm Name: cockpit-sensors Version: %{VERSION} Release: 1%{?dist} From 914900f5098249e6df7dbc6c66cefb8ce36c036c Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Mon, 5 Feb 2024 22:01:40 +0000 Subject: [PATCH 2/3] teste: apt --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 632a604..106bad7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,6 +51,10 @@ jobs: asset_name: cockpit-sensors.deb tag: ${{ github.ref }} + + - name: Install RPM + run: apt update + - name: Install RPM run: apt install rpm From 7ba42a0a17015129af285798c7debf0008373303 Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Mon, 5 Feb 2024 19:18:35 -0300 Subject: [PATCH 3/3] fix: release order --- .github/workflows/release.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 106bad7..afb40b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,9 @@ jobs: - name: Build release run: make dist + - name: Build Deb release + run: make deb + - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: @@ -40,9 +43,6 @@ jobs: 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: @@ -50,21 +50,3 @@ jobs: file: cockpit-sensors.deb asset_name: cockpit-sensors.deb tag: ${{ github.ref }} - - - - name: Install RPM - run: apt update - - - name: Install RPM - run: apt install rpm - - - name: Build RPM - run: make rpm - - - name: Upload RPM binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: cockpit-sensors.rpm - asset_name: cockpit-sensors.rpm - tag: ${{ github.ref }} \ No newline at end of file