mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Update the release scripts to match our canonical tags
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user