Enabled offline search, per #150 (#154) #12
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: Build and Deploy Hugo site to GitHub Pages | |
on: | |
push: | |
branches: | |
- '*' # or your primary branch | |
permissions: | |
contents: write | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '22' # or another LTS version | |
- name: Install dependencies | |
run: npm install --save-dev postcss postcss-cli autoprefixer | |
- name: Install Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- 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-hugo |