Fix exports (#371) #8
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: docs | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'LICENSE' | |
- 'README.md' | |
- 'typedoc.js' | |
- '.github/workflows/**' | |
- 'src/**/*.ts' | |
jobs: | |
update: | |
name: Update Docs | |
runs-on: ubuntu-20.04 | |
container: node:16.15.1-bullseye | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v4 | |
with: | |
path: main | |
persist-credentials: false | |
- name: Checkout gh-pages | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
path: gh-pages | |
persist-credentials: false | |
- name: Build Docs | |
working-directory: main | |
run: | | |
set -x | |
yarn --ignore-engines --non-interactive | |
yarn doc | |
- name: Copy Docs to gh-pages | |
run: | | |
rm -rf gh-pages/docs | |
cp -r main/doc gh-pages/docs | |
- name: Commit new docs | |
working-directory: gh-pages | |
run: | | |
COMMIT_SHA=$(echo "${COMMIT_SHA}" | cut -c 1-7) | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
git add --all | |
git commit --allow-empty -m "update docs from ${COMMIT_SHA}" | |
git push | |
env: | |
COMMIT_SHA: ${{ github.sha }} |