Skip to content

Commit 6fc6255

Browse files
committed
github workflows
1 parent 331ca34 commit 6fc6255

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/hugo.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
# Sample workflow for building and deploying a Hugo site to GitHub Pages
22
name: Deploy Hugo site to Pages
3-
43
on:
54
# Runs on pushes targeting the default branch
65
push:
76
branches: ["main"]
8-
97
# Allows you to run this workflow manually from the Actions tab
108
workflow_dispatch:
11-
129
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1310
permissions:
1411
contents: read
1512
pages: write
1613
id-token: write
17-
1814
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1915
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2016
concurrency:
2117
group: "pages"
2218
cancel-in-progress: false
23-
2419
# Default to bash
2520
defaults:
2621
run:
2722
shell: bash
28-
2923
jobs:
3024
# Build job
3125
build:
@@ -42,7 +36,11 @@ jobs:
4236
- name: Checkout
4337
uses: actions/checkout@v4
4438
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
4644
- name: Setup Pages
4745
id: pages
4846
uses: actions/configure-pages@v5
@@ -60,7 +58,6 @@ jobs:
6058
uses: actions/upload-pages-artifact@v3
6159
with:
6260
path: ./public
63-
6461
# Deployment job
6562
deploy:
6663
environment:

0 commit comments

Comments
 (0)