Skip to content

Commit a8a5a16

Browse files
authored
Update deploy-action.yml
1 parent b4a0470 commit a8a5a16

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy-action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ jobs:
2929
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
3030
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
3131
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
32-
- run: ssh -i ${{ secrets.SSH_PRIVATE_KEY }} debian@shift.python.software.fr "cd /home/debian && git pull origin main && ./install.sh"
32+
- run: |
33+
mkdir -p ~/.ssh
34+
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
35+
chmod 600 ~/.ssh/id_rsa
36+
ssh -i ~/.ssh/id_rsa debian@shift.python.software.fr "cd /home/debian && git pull origin main && ./install.sh"

0 commit comments

Comments
 (0)