Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
StaticFX committed Jan 2, 2025
1 parent 4b7607d commit 801f5fa
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
execute:
runs-on: ubuntu-latest
steps:
- name: SSH and Execute Commands
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: |
echo "Starting deployment"
# Add your deployment commands here
echo "Deployment complete"
- name: install ssh keys
# check this thread to understand why its needed:
# https://stackoverflow.com/a/70447517
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.SERVER_SSH_PORT }} > ~/.ssh/known_hosts
- name: connect and pull
run: ssh ${{ secrets.SERVER_SSH_USERNAME }}@${{ secrets.SERVER_SSH_PORT }} "mkdir worked"
- name: cleanup
run: rm -rf ~/.ssh

0 comments on commit 801f5fa

Please sign in to comment.