Merge pull request #1126 from metabrainz/dependabot/npm_and_yarn/expr… #433
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: JSDocs to GitHub pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: NPM install | |
uses: bahmutov/npm-install@v1 | |
- name: Build source | |
run: npm run build | |
- name: Build JSDoc | |
uses: andstor/jsdoc-action@v1 | |
with: | |
recurse: true | |
source_dir: ./lib | |
output_dir: ./gh-pages | |
template: minami | |
front_page: README.md | |
- name: Deploy Docs to GH pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./gh-pages |