Skip to content

Commit

Permalink
Update ci for typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ottebrut committed Jun 21, 2022
1 parent b01bbbd commit 8394d82
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Documentation generation

on:
push:
branches:
- master

jobs:
lint:
name: Generate docs and push to github pages
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- name: Set up yarn
run: npm install --global yarn

- name: Set up dependencies
run: yarn

- name: Generate docs
run: yarn docs

- name: Deploy Github Page
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
6 changes: 0 additions & 6 deletions .github/workflows/ci-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,3 @@ jobs:

- name: Build bundle
run: yarn build

- name: Deploy Github Page
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

0 comments on commit 8394d82

Please sign in to comment.