From a85e19ec737706f0197a37b1f0b898b444c6012c Mon Sep 17 00:00:00 2001 From: ravigulhane Date: Wed, 20 May 2026 04:23:30 +0000 Subject: [PATCH] Upload files to ".gitea/workflows/ftp_deploy.yml" --- .../workflows/ftp_deploy.yml/ftp_deploy.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/ftp_deploy.yml/ftp_deploy.yml diff --git a/.gitea/workflows/ftp_deploy.yml/ftp_deploy.yml b/.gitea/workflows/ftp_deploy.yml/ftp_deploy.yml new file mode 100644 index 00000000..dc88a5b1 --- /dev/null +++ b/.gitea/workflows/ftp_deploy.yml/ftp_deploy.yml @@ -0,0 +1,29 @@ +name: Specific Folder FTP Upload + +on: + push: + branches: + - main # Change this if your default branch is master + paths: + - 'resources/views/form/**' # 👈 CHANGE THIS to your folder name + +jobs: + ftp-deploy: + runs-on: ubuntu-latest + steps: + # 1. Checkout the code + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 2 # Fetches the current and previous commit to calculate differences + + # 2. Extract and Upload only the changed files + - name: Sync Changed Files to FTP + uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + # Only sync the files within your specific folder + local-dir: ./resources/views/form/ # 👈 CHANGE THIS to match your folder + server-dir: /var/www/rapport/resources/views/form/ # 👈 CHANGE THIS to your remote FTP path \ No newline at end of file