Skip to content

Commit

Permalink
change yml directory
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Feb 22, 2024
1 parent ad6bc75 commit a0254f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_PRIVATE_KEY }}
source: .next2
target: /opub-deploy
target: opub-deploy

- name: Delete old .next on EC2
run: ssh ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} 'rm -rf /opub-deploy/.next'
run: ssh ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} 'rm -rf opub-deploy/.next'

- name: Rename .next2 to .next
run: ssh ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} 'mv /path/to/remote/directory/.next2 /path/to/remote/directory/.next'
run: ssh ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} 'mv opub-deploy/.next2 opub-deploy/.next'

- name: Restart server
run: ssh ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} 'pm2 restart opub-deploy'

0 comments on commit a0254f2

Please sign in to comment.