Fix SSH setup for release tagging
@@ -31,11 +31,14 @@ jobs:
- name: Install SSH
run: |
+ apt-get update -y && apt-get install openssh-client -y
+ eval $(ssh-agent -s -a $SSH_AUTH_SOCK)
echo "$SSH_SIGNING_KEY" | tr -d '\r' | ssh-add -
mkdir -p ~/.ssh
chmod 700 ~/.ssh
env:
SSH_SIGNING_KEY: ${{ secrets.SSH_SIGNING_KEY }}
+ SSH_AUTH_SOCK: /tmp/ssh_agent.sock
- name: Git setup
run: |
@@ -49,6 +52,8 @@ jobs:
git checkout master
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
cargo release --no-confirm --execute --sign $( echo '${{ github.head_ref }}' | sed 's?release/??' )
+ env:
+ SSH_AUTH_SOCK: /tmp/ssh_agent.sock
- name: Generate Release Notes
id: notes
