Skip to content

Fix Hugo v0.156.0 빌드 오류: .Site.Author → .Site.Params.author #186

Fix Hugo v0.156.0 빌드 오류: .Site.Author → .Site.Params.author

Fix Hugo v0.156.0 빌드 오류: .Site.Author → .Site.Params.author #186

Workflow file for this run

name: Deploy Hugo site to Pages
on:
push:
branches: ["main"]
paths:
- 'content/**'
- 'layouts/**'
- 'static/**'
- 'assets/**'
- 'hugo.yaml'
- 'config.yaml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build with Hugo
run: hugo -D
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4