From bfb2b4834176817c1cfdac0cf516757bde1622c6 Mon Sep 17 00:00:00 2001 From: Cristopfer Luis Viana da Silva Date: Mon, 5 Feb 2024 16:48:17 +0000 Subject: [PATCH] fix: make --- .github/workflows/release.yml | 6 +++++- Makefile | 4 ++-- packaging/cockpit-sensors.spec.in | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03b0a73..dffd4e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,11 @@ jobs: - name: Build release run: make dist + - name: Build deb + run: make deb + - name: Publish GitHub release uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9 with: - filename: "cockpit-sensors-${{ github.ref_name }}.tar.xz" + filename: "cockpit-sensors.tar.xz" + filename: "cockpit-sensors.deb" diff --git a/Makefile b/Makefile index b992f64..c1b06e1 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ ifeq ($(TEST_OS),) TEST_OS = centos-8-stream endif export TEST_OS -TARFILE=$(RPM_NAME)-$(VERSION).tar.xz -NODE_CACHE=$(RPM_NAME)-node-$(VERSION).tar.xz +TARFILE=$(RPM_NAME).tar.xz +NODE_CACHE=$(RPM_NAME)-node.tar.xz SPEC=$(RPM_NAME).spec PREFIX ?= /usr/local APPSTREAMFILE=org.cockpit-project.$(PACKAGE_NAME).metainfo.xml diff --git a/packaging/cockpit-sensors.spec.in b/packaging/cockpit-sensors.spec.in index dd544d0..c960fb3 100644 --- a/packaging/cockpit-sensors.spec.in +++ b/packaging/cockpit-sensors.spec.in @@ -4,8 +4,8 @@ Release: 1%{?dist} Summary: Cockpit Sensors Module License: LGPL-2.1-or-later -Source0: https://github.com/ocristopfer/cockpit-sensors-2/releases/download/%{version}/%{name}-%{version}.tar.xz -Source1: https://github.com/ocristopfer/cockpit-sensors-2/releases/download/%{version}/%{name}-node-%{version}.tar.xz +Source0: https://github.com/ocristopfer/cockpit-sensors-2/releases/latest/download/cockpit-sensors.tar.xz +Source1: https://github.com/ocristopfer/cockpit-sensors-2/releases/latest/download/cockpit-sensors-node.tar.xz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs