mirror of
https://github.com/chenasraf/simple-scaffold.git
synced 2026-05-18 01:29:09 +00:00
22 lines
665 B
YAML
22 lines
665 B
YAML
name: Build Documentation
|
|
|
|
on:
|
|
push:
|
|
branches: [master, develop]
|
|
jobs:
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip docs]')"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "12.x"
|
|
- run: cd doc-theme && yarn install && yarn build && rm -rf node_modules && cd ..
|
|
- run: yarn install --frozen-lockfile
|
|
- run: yarn typedoc
|
|
- uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs
|