build: Don't set 'latest' link for dev builds

This commit is contained in:
cloudhead 2024-04-30 22:02:32 +02:00
parent faafd21a91
commit 780f0eff37
No known key found for this signature in database
1 changed files with 6 additions and 2 deletions

View File

@ -31,8 +31,12 @@ 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
echo "Creating 'latest' symlink.."
ssh -i $SSH_KEY $SSH_ADDRESS ln -snf /mnt/radicle/files/releases/$version /mnt/radicle/files/releases/latest
else
echo "Skipping 'latest' symlink creation for development build."
fi
echo "Done."
}