diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 5cc45cd..8cbe3d6 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -9,8 +9,10 @@ jobs: build: runs-on: linux steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Git checkout + uses: actions/checkout@v6 + with: + fetch-tags: true - name: Build tarball run: make tarball - name: Build rpm package diff --git a/Makefile b/Makefile index 3718577..80e7fdc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ NAME = $(shell basename $(PWD)) VERSION = $(shell git describe | sed 's/-/./g') -RELEASE = 0 +RELEASE = $(shell git rev-parse --short HEAD) BRANCH = $(shell git branch --show-current) BUILD_ARCH = noarch RPM_BUILD_PATH = $(RPM_RPMDIR)/$(BUILD_ARCH)/$(NAME)-$(VERSION)-$(RELEASE).$(BUILD_ARCH).rpm