Skip to content

Merge pull request #373 from kubernetes-sigs/dependabot/github_action… #9

Merge pull request #373 from kubernetes-sigs/dependabot/github_action…

Merge pull request #373 from kubernetes-sigs/dependabot/github_action… #9

Workflow file for this run

name: github pages
permissions:
contents: write
on:
push:
paths:
- "docs/**"
- ".github/workflows/docs.yml"
branches:
- main # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.5.0
with:
hugo-version: 'latest'
extended: true
- name: Build
run: cd docs && npm install && hugo --minify
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@65b5dfd4f5bcd3a7403bbc2959c144256167464e # v4.5.0
with:
folder: ./docs/public # The folder the action should deploy.