23 lines
505 B
YAML
23 lines
505 B
YAML
name: Generate documentation
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 14.x
|
|
- name: Redeploy documentation
|
|
run: |
|
|
git config --global user.email "noreply@example.com"
|
|
git config --global user.name Documentation
|
|
npm install
|
|
npm run docs:deploy
|