Merge pull request #163 from texei/dependabot/npm_and_yarn/ejs-3.1.10 #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
# Build doc with sfdx-hardis | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: yarn | |
- run: yarn prepack | |
- run: npm i @salesforce/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 mkdocs-glightbox==0.3.2 pymdown-extensions==9.1 | |
- run: mkdocs gh-deploy --force |