From b5814520e628111136a596618652f8cde3737172 Mon Sep 17 00:00:00 2001 From: ArabPixel Date: Mon, 10 Nov 2025 16:33:33 +0100 Subject: [PATCH] Sync both hosts. --- .github/workflows/secondHost.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/secondHost.yml diff --git a/.github/workflows/secondHost.yml b/.github/workflows/secondHost.yml new file mode 100644 index 0000000..f844a44 --- /dev/null +++ b/.github/workflows/secondHost.yml @@ -0,0 +1,24 @@ +name: Deploy to mirrored Host +on: + push: + branches: + - main # or master, depending on your repo + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Upload to mirrored host via FTP + uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: ./ # folder you want to upload + server-dir: /htdocs/ # your web root + exclude: | + **/.git* + **/.github*