add workflow auto update to server
This commit is contained in:
24
.gitea/workflows/deploy-controllers.yml
Normal file
24
.gitea/workflows/deploy-controllers.yml
Normal 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 }}
|
||||||
Reference in New Issue
Block a user