Skip to content

Commit

Permalink
Split action
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpetros committed Mar 3, 2024
1 parent dcea567 commit a84fe69
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ jobs:
echo "$SSH_PRIVATE_KEY" > ../private.key
sudo chmod 600 ../private.key
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
ssh -i $SSH_KEY_PATH github@wemakeinter.net
cd /var/www/wmi-home-page
shell: bash
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
- name: Run deploy
run: |
ssh -i $SSH_KEY_PATH github@wemakeinter.net
cd /var/www/wmi-home-page
git pull
env:
SSH_KEY_PATH: ${{ github.workspace }}/../private.key

0 comments on commit a84fe69

Please sign in to comment.