Merge pull request #125 from smithbk/issue-628-fix-show-colors-second… #102
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: Deploy TypeDocs to GitHub pages | |
on: | |
push: | |
branches: | |
- master | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Generate static TypeDoc files | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- run: npm ci | |
- run: npm run build-docs | |
- name: Init new repo in dist folder and commit generated files | |
run: | | |
cd docs | |
git init | |
git add -A | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "Deploy updated typedocs" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: gh-pages | |
force: true | |
directory: ./docs | |