Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Update the release scripts to match our canonical tags
Rūdolfs Ošiņš committed 3 months ago
commit a4a3f65ffeebad5149296c431563d6fef1c21474
parent 1416286
3 files changed +5 -5
modified radicle-httpd/build/tag
@@ -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)

modified radicle-httpd/build/upload
@@ -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
modified radicle-httpd/build/version
@@ -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