mirror of
https://github.com/jwetzell/showbridge-www.git
synced 2026-07-26 08:58:39 +00:00
7cafe7605c
Bump actions/checkout from 6.0.0 to 6.0.1
35 lines
959 B
YAML
35 lines
959 B
YAML
name: Publish site
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
publish-site:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.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 |