From 6f399caebfde104a2a05f7419d64cbd1856abf24 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 7 Mar 2026 11:40:50 -0600 Subject: [PATCH] add publish workflow --- .github/workflows/publish.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6d10a10 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,34 @@ +name: publish +on: + push: + branches: + - main +jobs: + build-publish: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Set up Node.js + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 + with: + node-version-file: '.nvmrc' + cache: 'npm' + cache-dependency-path: './package-lock.json' + + - name: install dependencies + run: npm ci + + - name: build + run: npm run build + + - name: publish + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 + with: + server: ${{secrets.FTP_HOST}} + username: ${{secrets.FTP_USERNAME}} + password: ${{secrets.FTP_PASSWORD}} + local-dir: ./dist/webui/browser/ + port: 21 + protocol: ftps