diff --git a/.github/workflows/update-latest-symlink.bash b/.github/workflows/update-latest-symlink.bash index 23781adba..745555b4a 100755 --- a/.github/workflows/update-latest-symlink.bash +++ b/.github/workflows/update-latest-symlink.bash @@ -9,11 +9,12 @@ main () { echo "$#: Wrong number of arguments" return 1 fi - + local target="x86_64-unknown-linux-musl" local sha=$1 echo "$SSH_PRIVATE_KEY" >ssh-private-key chmod go-rwx ssh-private-key - ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ssh-private-key github-actions@files.radicle.xyz ln -snf "/mnt/radicle/releases/${sha}" "/mnt/radicle/releases/latest" + ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ssh-private-key github-actions@files.radicle.xyz "/mnt/radicle/releases/${sha}/rad version --json > /mnt/radicle/releases/${sha}/${target}/version.json" + # ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ssh-private-key github-actions@files.radicle.xyz ln -snf "/mnt/radicle/releases/${sha}" "/mnt/radicle/releases/latest" } main "$@"