File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2
2
name : Deploy Hugo site to Pages
3
-
4
3
on :
5
4
# Runs on pushes targeting the default branch
6
5
push :
7
6
branches : ["main"]
8
-
9
7
# Allows you to run this workflow manually from the Actions tab
10
8
workflow_dispatch :
11
-
12
9
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
10
permissions :
14
11
contents : read
15
12
pages : write
16
13
id-token : write
17
-
18
14
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19
15
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20
16
concurrency :
21
17
group : " pages"
22
18
cancel-in-progress : false
23
-
24
19
# Default to bash
25
20
defaults :
26
21
run :
27
22
shell : bash
28
-
29
23
jobs :
30
24
# Build job
31
25
build :
42
36
- name : Checkout
43
37
uses : actions/checkout@v4
44
38
with :
45
- submodules : recursive
39
+ submodules : false
40
+ - name : Install Hugo theme
41
+ run : |
42
+ rm -rf themes/cactus
43
+ git clone https://github.com/monkeyWzr/hugo-theme-cactus.git themes/cactus
46
44
- name : Setup Pages
47
45
id : pages
48
46
uses : actions/configure-pages@v5
60
58
uses : actions/upload-pages-artifact@v3
61
59
with :
62
60
path : ./public
63
-
64
61
# Deployment job
65
62
deploy :
66
63
environment :
You can’t perform that action at this time.
0 commit comments