forked from kubernetes-sigs/bom
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (29 loc) · 945 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
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@75d2e84710de30f6ff7268e08f310b60ef14033f # 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@5c6e9e9f3672ce8fd37b9856193d2a537941e66c # v4.6.1
with:
folder: ./docs/public # The folder the action should deploy.