-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.04 KB
/
publish-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish @showbridge/docs to docs site
on:
workflow_dispatch:
push:
tags:
- 'docs/**'
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- 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: 'docs/package-lock.json'
- name: Install Node.js dependencies
run: npm ci
working-directory: ./docs
- name: build docs
run: npm run build:prod
working-directory: ./docs
- name: publish docs
uses: SamKirkland/FTP-Deploy-Action@8e83cea8672e3fbcbb9fdafff34debf6ae4c5f65 # v4.3.5
with:
server: ${{secrets.FTP_URL}}
username: ${{secrets.DOCS_FTP_USERNAME}}
password: ${{secrets.DOCS_FTP_PASSWORD}}
local-dir: ./docs/dist/
server-dir: docs/
port: 21
protocol: ftps