mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-08-03 04:47:45 +00:00
36 lines
965 B
YAML
36 lines
965 B
YAML
name: Publish to docs site
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
cache: "npm"
|
|
cache-dependency-path: "package-lock.json"
|
|
|
|
- name: Install Node.js dependencies
|
|
run: npm ci
|
|
|
|
- name: build docs
|
|
run: npm run build:prod
|
|
|
|
- name: publish docs
|
|
uses: SamKirkland/FTP-Deploy-Action@110f9186c050f71550953127052e77650219c287 # v4.4.0
|
|
with:
|
|
server: ${{secrets.FTP_HOST}}
|
|
username: ${{secrets.DOCS_FTP_USERNAME}}
|
|
password: ${{secrets.DOCS_FTP_PASSWORD}}
|
|
local-dir: ./dist/
|
|
server-dir: ./
|
|
port: 21
|
|
protocol: ftps
|