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}