Skip to content

Commit

Permalink
Update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
just-pthai-it committed Jun 16, 2024
1 parent ad6c277 commit 1c737ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/.github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
env:
SSH_PRIVATE_KEY_LOCALCOMPUTER: ${{ secrets.SSH_PRIVATE_KEY_LOCALCOMPUTER }}
MY_VPS_USER: ${{ secrets.v }}
MY_VPS_IP_ADDRESS: ${{ secrets.MY_VPS_IP_ADDRESSMY_VPS_IP_ADDRESS }}
MY_VPS_PROJECT_PATH: ${{ secrets.MY_VPS_PROJECT_PATHv }}
MY_VPS_USER: ${{ secrets.MY_VPS_USER }}
MY_VPS_IP_ADDRESS: ${{ secrets.MY_VPS_IP_ADDRESS }}
MY_VPS_PROJECT_PATH: ${{ secrets.MY_VPS_PROJECT_PATH }}
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
Expand All @@ -26,7 +26,7 @@ jobs:
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: eval $(ssh-agent -s)
- run: ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER")
- run: ssh-keyscan -H $$MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts
- 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
Expand Down

0 comments on commit 1c737ff

Please sign in to comment.