Update workflow #9
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 Hugo and TypeDoc Site to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
# permissions: | |
# contents: read | |
# pages: write | |
# id-token: write | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.135.0' | |
extended: true | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.11.0' | |
- name: Install Dependencies | |
run: npm install | |
- name: Generate TypeDoc Documentation | |
run: npx typedoc --skipErrorChecking | |
- name: Build Hugo site | |
run: | | |
cd site && hugo --minify | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
publish_branch: gh-pages |