Feat/improve test coverage 1 (#818) #398
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: Documentation generator | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: setup node.js | |
uses: actions/setup-node@v4 | |
- name: install dependencies | |
run: | | |
npm clean-install | |
npm i -d @types/node | |
- run: npm run build | |
- name: build typedoc site | |
run: | | |
npx typedoc | |
- name: make git repo to push to github actions | |
run: | | |
cd documentation | |
git init | |
git add -A | |
git config user.name 'GitHub Actions' | |
git config user.email '[email protected]' | |
git commit -sam "$(date -Iseconds)" | |
touch .nojekyll | |
- name: push documentation files to docs branch | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
force: true | |
directory: documentation |