From 0cdf467ebd937816a02fe26f4c429ee0b976be31 Mon Sep 17 00:00:00 2001 From: KarlderHeinz Date: Sat, 22 Aug 2026 01:04:03 +0200 Subject: [PATCH] added build.yml --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..be858b0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build & Deploy + +on: + pull_request: + branches: [main] + types: [opened, synchronize, reopened] + workflow_dispatch: # manual trigger — handy while you're wiring this up + +jobs: + build-and-copy: + runs-on: self-hosted # must match a LABEL on your runner (see below) + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build + run: | + echo "replace with your actual build command" + # e.g. npm ci && npm run build / make all + + - name: Copy build output to FTP server + uses: SamKirkland/FTP-Deploy-Action@4.2.0 + with: + server: 192.168.x.x # LAN IP of the box running your FTP server + username: ${{ secrets.FTP_USER }} + password: ${{ secrets.FTP_PASS }} + local-dir: dist/ # where your build output lands + remote-dir: /public_html/site/ # target dir on the FTP server