Skip to content

Commit 1b7d497

Browse files
Feat/prerelease build (#12)
* fix: debian build action prelease version number * fix: author
1 parent 5972799 commit 1b7d497

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build-deb.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ jobs:
9191
if [[ "$VERSION" == *"~${CODENAME}"* || "$VERSION" == *"+${CODENAME}"* ]]; then
9292
echo "Version already contains codename suffix, skipping dch."
9393
else
94-
# If there's already a ~ in version (like ~pre1), add +codename
95-
if [[ "$VERSION" == *"~"* ]]; then
96-
dch --local +${CODENAME} --distribution ${CODENAME} "Build for ${CODENAME}"
94+
if [[ ! $GITHUB_REF =~ ^refs/tags/ ]]; then
95+
# Not a tag, so add ~pre<x>
96+
dch --local ~pre${GITHUB_RUN_NUMBER}+${CODENAME} --distribution ${CODENAME} "Pre-release build"
9797
else
9898
dch --local ~${CODENAME} --distribution ${CODENAME} "Build for ${CODENAME}"
9999
fi

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
libosal (0.1.1) unstable; urgency=low
2+
3+
* prep: github debian build action
4+
5+
-- Robert Burger <robert.burger@dlr.de> Tue, 05 Aug 2025 07:07:08 +0200
6+
17
libosal (0.1.0) unstable; urgency=low
28

39
* del: old project props

0 commit comments

Comments
 (0)