Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
ci: Add version file to binary release
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Mar 12, 2024
1 parent 3ad2b44 commit c3e6ce2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update-latest-symlink.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] ln -snf "/mnt/radicle/releases/${sha}" "/mnt/radicle/releases/latest"
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ssh-private-key [email protected] "/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 [email protected] ln -snf "/mnt/radicle/releases/${sha}" "/mnt/radicle/releases/latest"
}

main "$@"

0 comments on commit c3e6ce2

Please sign in to comment.