Skip to content

Commit

Permalink
Improve deploy-to-vps.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mega-JC committed Jul 26, 2024
1 parent 3b800df commit ac673a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-to-vps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Deploy to VPS
uses: easingthemes/ssh-deploy@main
env:
with:
SSH_PRIVATE_KEY: ${{ secrets.VPS_SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.VPS_HOST }}
REMOTE_USER: ${{ secrets.VPS_USER }}
TARGET: ~/PygameCommunityBot
SOURCE: "."
TARGET: ~/PygameCommunityBot/
SCRIPT_AFTER: |
cp ~/config.py ~/PygameCommunityBot/config.py
cp ~/.env ~/PygameCommunityBot/.env
cd ~/PygameCommunityBot
docker compose stop
docker compose rm -f
sleep 60 && docker compose up -d --build
Expand Down

0 comments on commit ac673a7

Please sign in to comment.