diff --git a/.github/workflows/deploy-to-vps.yml b/.github/workflows/deploy-to-vps.yml index 1cec8d4..221c9da 100644 --- a/.github/workflows/deploy-to-vps.yml +++ b/.github/workflows/deploy-to-vps.yml @@ -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