From 242da323c295ea8753e93e1153adafe9bea8d49e Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 18 Dec 2025 08:55:54 -0600 Subject: [PATCH] add publish site workflow --- .github/workflows/publish-site.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish-site.yml diff --git a/.github/workflows/publish-site.yml b/.github/workflows/publish-site.yml new file mode 100644 index 0000000..556da83 --- /dev/null +++ b/.github/workflows/publish-site.yml @@ -0,0 +1,35 @@ +name: Publish site +on: + workflow_dispatch: + push: + branches: + - main +jobs: + publish-site: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + + - name: Set up Node.js + uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 + with: + node-version-file: '.nvmrc' + cache: 'npm' + cache-dependency-path: 'package-lock.json' + + - name: Install Node.js dependencies + run: npm ci + + - name: Build Tailwind CSS + run: npm run tailwind + + - name: publish site + uses: SamKirkland/FTP-Deploy-Action@a51268f67f6605236975928ae28b0f7e9971d50a # v4.3.6 + with: + server: ${{secrets.FTP_URL}} + username: ${{secrets.WWW_FTP_USERNAME}} + password: ${{secrets.WWW_FTP_PASSWORD}} + local-dir: ./src/ + server-dir: / + port: 21 + protocol: ftps \ No newline at end of file