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 14b7df7 commit ad6c277
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/.github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
Explore-GitHub-Actions:
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 }}
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 @@ -20,9 +25,9 @@ jobs:
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: eval $(ssh-agent -s)
- run: bash -c 'ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY_LOCALCOMPUTER }}")'
- run: ssh-keyscan -H ${{ secrets.MY_VPS_IP_ADDRESS }} >> ~/.ssh/known_hosts
- run: ssh ${{ secrets.MY_VPS_USER }}@${{ secrets.MY_VPS_IP_ADDRESS }}
- run: cd ${{ secrets.MY_VPS_PROJECT_PATH }}
- run: ssh-add <(echo "$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
- run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit ad6c277

Please sign in to comment.