We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53898cb commit da76eabCopy full SHA for da76eab
1 file changed
.github/workflows/release.yml
@@ -113,8 +113,10 @@ jobs:
113
else
114
VERSION=${GITHUB_REF#refs/tags/v}
115
fi
116
- # Normalize version for Debian (replace hyphens, ensure it starts with a digit)
117
- DEB_VERSION=$(echo "$VERSION" | sed 's/^v//')
+ # Normalize to a valid Debian version: strip leading 'v', replace
+ # characters illegal in dpkg versions, and prefix with '0~' when the
118
+ # result doesn't start with a digit (Debian convention for pre-release)
119
+ DEB_VERSION=$(echo "$VERSION" | awk '{sub(/^v/,""); gsub(/[^A-Za-z0-9.+~-]/,"."); if ($0 !~ /^[0-9]/) $0="0~"$0; print}')
120
echo "version=${DEB_VERSION}" >> $GITHUB_OUTPUT
121
122
- name: Build .deb package
0 commit comments