From 8e9f45b38b59e02a907771cf519eedf09be069b8 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Sun, 22 Feb 2026 04:11:30 +0000 Subject: [PATCH] feat: add GitHub Actions CI/CD deploy workflow Co-Authored-By: Claude Opus 4.6 --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7b4a17b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Deploy to VPS + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.VPS_HOST }} + username: ${{ secrets.VPS_USER }} + key: ${{ secrets.VPS_SSH_KEY }} + script: | + cd /opt/project-afterlife + git pull origin main + cd docker + docker compose build + docker compose up -d + docker compose exec web npm run build + docker compose restart web