We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea49292 commit 6622bbfCopy full SHA for 6622bbf
1 file changed
.github/workflows/deploy.yml
@@ -33,15 +33,21 @@ jobs:
33
uses: actions/checkout@v4
34
35
- name: Setup SSH
36
+ shell: bash
37
+ env:
38
+ SSH_PRIVATE_KEY_B64: ${{ secrets.SSH_PRIVATE_KEY_B64 }}
39
run: |
40
mkdir -p ~/.ssh
- printf "%s" "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
41
+ chmod 700 ~/.ssh
42
+
43
+ printf '%s' "$SSH_PRIVATE_KEY_B64" | base64 -d > ~/.ssh/id_ed25519
44
chmod 600 ~/.ssh/id_ed25519
45
46
+ ssh-keygen -lf ~/.ssh/id_ed25519
47
ssh-keyscan -H "${DEPLOY_HOST}" >> ~/.ssh/known_hosts
- shell: bash
48
49
- name: Deploy
50
env:
51
REMOTE_HOST: ciembor@${{ env.DEPLOY_HOST }}
52
run: scripts/deploy.sh
53
0 commit comments