Attempting to fix the build

due to newer hugo no longer working with the previous action

Signed-off-by: Matt Farina <matt.farina@suse.com>
This commit is contained in:
Matt Farina 2024-10-15 15:25:24 -04:00
parent 4ed7a88372
commit 9cce1b3f6d
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9
1 changed files with 13 additions and 5 deletions

View File

@ -6,7 +6,7 @@ on:
- main
jobs:
build-deploy:
build:
runs-on: ubuntu-latest
steps:
@ -14,9 +14,17 @@ jobs:
uses: actions/checkout@master
with:
submodules: true
- name: Publish Site
uses: chabad360/hugo-gh-pages@0bcf754dc6c823a580c58a59a3baa476a41258d3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
hugoVersion: extended_0.135.0
hugo-version: '0.135.0'
extended: true
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: blog.artifacthub.io