added contrained readme and refactored some methods. #18
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: Generate Docs | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Node | |
uses: ./.github/actions/setup-node | |
- name: Build | |
run: yarn build | |
- name: Build Docs | |
run: yarn typedoc | |
- uses: actions/upload-pages-artifact@v2 | |
with: | |
path: ./docs # This should be your TypeDoc "out" path. | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
needs: build | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
# https://github.com/actions/deploy-pages | |
uses: actions/deploy-pages@v2 |