Open alexandrevicenzi opened 3 weeks ago
Same situaction here. I switched to peaceiris/actions-hugo today. So far so good.
name: Publish Site
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
submodules: true
- name: Publish Site
uses: chabad360/hugo-gh-pages@master
with:
githubToken: ${{ secrets.PERSONAL_TOKEN }}
cname: blog.xuchunqiu.com
# branch: main # Or anything else
# Use if your site is not hosted on the gh-pages branch.
repo: xuchunqiu/xuchunqiu.github.io
# Use if you're pushing to a different repo.
hugoVersion: extended_0.95.0
args: --gc --minify --cleanDestinationDir
# Use if you want to pass some custom arguments to Hugo.
#siteDir: /github/workspace/public
# Use this if your site isn't in the root of your repo.
# The root of your repo can be found at /github/workspace
# Docs can be found at https://github.com/peaceiris/actions-gh-pages
name: GitHub Pages
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
# Fetch Hugo themes (true OR recursive)
submodules: true
# Fetch all history for .GitInfo and .Lastmod
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.136.3'
extended: true
- name: Build
run: hugo --gc --minify --cleanDestinationDir
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
# the contents of this dir are pushed to GitHub Pages branch
publish_dir: ./public
cname: blog.xuchunqiu.com
# When post to a different repo, the old githubToken no
# longer works. Use deploy_key or personal_token instead.
# https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-deploy-to-external-repository-external_repository
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: xuchunqiu/xuchunqiu.github.io
publish_branch: gh-pages
Hi,
If I set the image to anything newer:
hugoVersion: "extended_0.128.2"
The pipeline fails with:
The default version is 0.111, which is rather old.