-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (43 loc) · 1.23 KB
/
gh-pages.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: GitHub Pages - CI
on:
push:
paths-ignore:
- "images/**"
- "LICENSE"
- "README.md"
- "README_**"
- "README-**"
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
ref: main
submodules: true
fetch_depth: 1
persist-credentials: false
- name: Setup Hugo 🔧
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build 🔧
run: |
hugo --buildDrafts --gc --logLevel info --minify
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages # default: gh-pages
publish_dir: ./public # default: public
# cname: github.com
# user_name: 'github-actions[bot]'
# user_email: 'github-actions[bot]@users.noreply.github.com'
# commit_message: ${{ github.event.head_commit.message }}
# full_commit_message: ${{ github.event.head_commit.message }}
# enable_jekyll: true