29 lines
613 B
YAML
29 lines
613 B
YAML
name: Build Hugo Site
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main # Adjust if your main branch has a different name
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.18' # Specify the version of Go you need, align it with your project requirements
|
|
|
|
- name: Set up Hugo
|
|
uses: peaceiris/actions-hugo@v2
|
|
with:
|
|
hugo-version: '0.92.0' # Specify the Hugo version you need
|
|
|
|
- name: Build Hugo site
|
|
run: hugo --minify
|