Add gitea action.

Signed-off-by: Willy Sudiarto Raharjo <willysr@staff.ukdw.ac.id>
This commit is contained in:
2026-08-17 11:12:44 +07:00
parent f15b55f9b3
commit c5359f8a7e
+22
View File
@@ -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