Skip to content

Add site and publish workflow #1

Add site and publish workflow

Add site and publish workflow #1

Workflow file for this run

name: Deploy Hugo and TypeDoc Site to GitHub Pages
on:
push:
branches:
- main
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'
- 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
- name: Build Hugo site
run: |
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