From 6ccbac1ec2bd97ddd600faa5e5fede12b501ea61 Mon Sep 17 00:00:00 2001 From: aslan Date: Mon, 5 Feb 2024 11:39:12 +0300 Subject: [PATCH] fix deploy --- .gitea/workflows/php.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitea/workflows/php.yml b/.gitea/workflows/php.yml index fc46ec5..2f0e0fd 100644 --- a/.gitea/workflows/php.yml +++ b/.gitea/workflows/php.yml @@ -59,3 +59,20 @@ jobs: - name: Check tests run: make test + + deploy: + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout + use: appleboy/ssh-action@v1.0.3 + + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: whoami + + - name: git pull + run: cd /var/www/test-testabit && git pull