add workflow auto update to server

This commit is contained in:
2026-07-09 09:46:34 +07:00
parent bcb553ea56
commit a6412c9688

View File

@@ -0,0 +1,24 @@
name: Deploy controllers
on:
push:
branches:
- develop
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Upload changed controller files
uses: burnett01/rsync-deployments@7.0.2
with:
switches: -avz
path: ./application/controllers/
remote_path: /home/one/project/accone/one-api/application/controllers/
remote_host: accone.aplikasi.web.id
remote_user: ${{ secrets.SERVER_USER }}
remote_key: ${{ secrets.SERVER_SSH_KEY }}