-
-
Notifications
You must be signed in to change notification settings - Fork 14
28 lines (27 loc) · 754 Bytes
/
Copy pathbuild-deploy-docs.yml
File metadata and controls
28 lines (27 loc) · 754 Bytes
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
name: "DOC - Build and deploy with sfdx-hardis"
on:
push:
branches:
- main
- master
jobs:
# Build & deploy docs
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
# Build doc with sfdx-hardis
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: yarn
- run: yarn prepack
- run: npm i sfdx-cli -g
- run: echo y|sfdx plugins:install sfdx-hardis
- run: sfdx hardis:doc:plugin:generate
# Deploy docs with mkdocs-material
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material mdx_truly_sane_lists json-schema-for-humans
- run: mkdocs gh-deploy --force