Skip to content

chore: update submodules (#186) #201

chore: update submodules (#186)

chore: update submodules (#186) #201

Workflow file for this run

name: deploy
on:
push:
branches:
- main
# https://gohugo.io/hosting-and-deployment/hosting-on-github/#build-hugo-with-github-action
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.88.1"
extended: true
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Build
run: bash scripts/build.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: gh-pages
force_orphan: true