Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
just-pthai-it authored Jun 17, 2024
1 parent 1d898c3 commit 651f4a8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/.github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ jobs:
# - run: ssh-agent -s
# - run: eval $(ssh-agent -s)
# - run: ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER")
- name: Set up SSH agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_LOCALCOMPUTER }}
- run: ssh-keyscan -H $MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts
- run: ssh $MY_VPS_USER@$MY_VPS_IP_ADDRESS
- run: cd $MY_VPS_PROJECT_PATH
- run: touch abc.xyz
# - name: Set up SSH agent
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_LOCALCOMPUTER }}
- run: |
eval $(ssh-agent -s)
ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER")
ssh-keyscan -H $MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts
ssh $MY_VPS_USER@$MY_VPS_IP_ADDRESS
cd $MY_VPS_PROJECT_PATH
cat .env
- run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit 651f4a8

Please sign in to comment.