ci: fetch tags
This commit is contained in:
@@ -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
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user