Building the documentation for the release #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: Documentation | |
run-name: Building the documentation for the release | |
on: | |
push: | |
branches: release | |
jobs: | |
# Builds and packages the documentation | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Setting up Node | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
# Installing dependencies | |
- run: yarn | |
- run: npx typedoc src/index.ts | |
# Packaging the static site as artifact | |
- uses: actions/upload-pages-artifact@v2 | |
with: | |
path: ./docs | |
# Deploys the packaged documentation | |
deploy: | |
# Building and packaging the documentation | |
needs: build | |
# Granting necessary permissions | |
permissions: | |
pages: write | |
id-token: write | |
# Setting up GH pages environment | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
# Deploying to gh pages | |
- id: deployment | |
uses: actions/deploy-pages@v2 |