build: Don't set 'latest' link for dev builds
This commit is contained in:
parent
faafd21a91
commit
780f0eff37
|
|
@ -31,8 +31,12 @@ main() {
|
||||||
ssh -i $SSH_KEY $SSH_ADDRESS ln -snf $archive.sha256 $symlink.sha256
|
ssh -i $SSH_KEY $SSH_ADDRESS ln -snf $archive.sha256 $symlink.sha256
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if git describe --exact-match --match='v*' 2>/dev/null; then
|
||||||
echo "Creating 'latest' symlink.."
|
echo "Creating 'latest' symlink.."
|
||||||
ssh -i $SSH_KEY $SSH_ADDRESS ln -snf /mnt/radicle/files/releases/$version /mnt/radicle/files/releases/latest
|
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."
|
echo "Done."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue