Skip to content

Commit

Permalink
Create hugo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rafed authored Nov 5, 2024
1 parent e7c3a9c commit a24dc9d
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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'
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: ./site/public
publish_branch: gh-pages

0 comments on commit a24dc9d

Please sign in to comment.