ci: fetch tags

This commit is contained in:
2026-02-14 21:45:25 +01:00
parent 26c809f746
commit 69d5b8aeae
2 changed files with 5 additions and 3 deletions

View File

@@ -9,8 +9,10 @@ jobs:
build: build:
runs-on: linux runs-on: linux
steps: steps:
- name: Checkout - name: Git checkout
uses: actions/checkout@v4 uses: actions/checkout@v6
with:
fetch-tags: true
- name: Build tarball - name: Build tarball
run: make tarball run: make tarball
- name: Build rpm package - name: Build rpm package

View File

@@ -1,6 +1,6 @@
NAME = $(shell basename $(PWD)) NAME = $(shell basename $(PWD))
VERSION = $(shell git describe | sed 's/-/./g') VERSION = $(shell git describe | sed 's/-/./g')
RELEASE = 0 RELEASE = $(shell git rev-parse --short HEAD)
BRANCH = $(shell git branch --show-current) BRANCH = $(shell git branch --show-current)
BUILD_ARCH = noarch BUILD_ARCH = noarch
RPM_BUILD_PATH = $(RPM_RPMDIR)/$(BUILD_ARCH)/$(NAME)-$(VERSION)-$(RELEASE).$(BUILD_ARCH).rpm RPM_BUILD_PATH = $(RPM_RPMDIR)/$(BUILD_ARCH)/$(NAME)-$(VERSION)-$(RELEASE).$(BUILD_ARCH).rpm