Update the release scripts to match our canonical tags

This commit is contained in:
Rūdolfs Ošiņš
2026-01-21 11:37:37 -06:00
parent 14162868f2
commit a4a3f65ffe
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ if [ $# -ne 1 ]; then
fi
version="$1"
tag="v$version"
tag="releases/$version"
commit="$(git rev-parse HEAD)"
signing_key=$(git config user.signingKey)
+1 -1
View File
@@ -32,7 +32,7 @@ main() {
ssh -i $SSH_KEY $SSH_ADDRESS ln -snf $archive.sha256 $symlink.sha256
done
if git describe --exact-match --match='v*' 2>/dev/null; then
if git describe --exact-match --match='releases/*' 2>/dev/null; then
echo "Creating 'latest' symlink.."
ssh -i $SSH_KEY $SSH_ADDRESS ln -snf /var/www/files.radicle.xyz/releases/radicle-httpd/$version /var/www/files.radicle.xyz/releases/radicle-httpd/latest
else
+3 -3
View File
@@ -1,9 +1,9 @@
#!/bin/sh
if ! version="$(git describe --match='v*' --candidates=1 2>/dev/null)"; then
if ! version="$(git describe --match='releases/*' --candidates=1 2>/dev/null)"; then
echo "fatal: no version tag found by 'git describe'" >&2 ; exit 1
fi
# Remove `v` prefix from version.
version=${version#v}
# Remove `releases/` prefix from version.
version=${version#releases/}
echo $version