From c5359f8a7e05cf41ef3aacfcbcc7014f37b98f0b Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 17 Aug 2026 11:12:44 +0700 Subject: [PATCH] Add gitea action. Signed-off-by: Willy Sudiarto Raharjo --- .gitea/workflows/deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..7ffc019 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Deploy PHP App +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Deploy via SSH + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USER }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + cd /home/willysr/public_html + git pull origin main