name: Build and Deploy Astro Landing on: push: branches: - main - master jobs: deploy: runs-on: ubuntu-latest steps: - name: Deploy to VPS via SSH uses: https://github.com/appleboy/ssh-action@v1.2.5 with: host: ${{ secrets.VPS_HOST }} username: ${{ secrets.VPS_USER }} key: ${{ secrets.VPS_SSH_KEY }} port: 22 script: | set -e cd /var/www/Landing git fetch --all git reset --hard origin/${{ github.ref_name }} docker compose build --no-cache docker compose up -d --force-recreate