🐛 fix dependency #77
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: Deploy Documentation | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- docs/** | |
jobs: | |
build-and-deploy: | |
name: Build and Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install Dependencies | |
run: | | |
cd docs | |
npm ci | |
- name: Build Documentation | |
run: npm run docs:publish | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@4.7.2 | |
with: | |
branch: gh-pages | |
folder: docs/dist/client | |
# Remove previous build files | |
clean: true | |
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build. | |
clean-exclude: | | |
.nojekyll |