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] 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}