31 lines
686 B
YAML
31 lines
686 B
YAML
name: Generate documentation
|
|
|
|
#on:
|
|
# push:
|
|
# paths:
|
|
# - 'docs/**'
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
github-pages:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install NPM dependencies
|
|
run: npm install
|
|
working-directory: ./docs
|
|
|
|
- name: Build docs site
|
|
run: npm run build
|
|
working-directory: ./docs
|
|
|
|
- name: Publish docs page
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./public
|
|
enable_jekyll: true
|
|
user_name: 'github-actions[bot]'
|
|
user_email: 'github-actions[bot]@users.noreply.github.com' |