Merge pull request #512 from kitsuyui/mymath-implement-holder-mean #322
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: Publish Typedoc | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build Typedoc | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
# https://nodejs.org/en/about/previous-releases | |
node-version: 22.x | |
- run: pnpm install | |
- run: pnpm typedoc | |
- uses: actions/upload-pages-artifact@v3 | |
id: deployment | |
with: | |
path: ./build/typedocs | |
deploy: | |
name: Deploy Typedoc | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
# https://github.com/actions/deploy-pages | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |