Skip to content

Commit 6622bbf

Browse files
committed
Update deploy workflow.
1 parent ea49292 commit 6622bbf

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,21 @@ jobs:
3333
uses: actions/checkout@v4
3434

3535
- name: Setup SSH
36+
shell: bash
37+
env:
38+
SSH_PRIVATE_KEY_B64: ${{ secrets.SSH_PRIVATE_KEY_B64 }}
3639
run: |
3740
mkdir -p ~/.ssh
38-
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
3944
chmod 600 ~/.ssh/id_ed25519
45+
46+
ssh-keygen -lf ~/.ssh/id_ed25519
4047
ssh-keyscan -H "${DEPLOY_HOST}" >> ~/.ssh/known_hosts
41-
shell: bash
4248
4349
- name: Deploy
4450
env:
4551
REMOTE_HOST: ciembor@${{ env.DEPLOY_HOST }}
4652
run: scripts/deploy.sh
47-
shell: bash
53+
shell: bash

0 commit comments

Comments
 (0)