File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploy Hugo Website to GitHub Pages
2
2
3
-
4
3
on :
5
- branches :
6
- - main
4
+ push :
5
+ branches :
6
+ - main
7
7
8
8
jobs :
9
9
build-deploy :
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- # Checkout the repository
13
+ # 1. Check out the repository
14
14
- name : Checkout Repository
15
15
uses : actions/checkout@v3
16
16
17
- # Set up Hugo
17
+ # 2. Set up Hugo
18
18
- name : Setup Hugo
19
19
uses : peaceiris/actions-hugo@v2
20
20
with :
21
21
hugo-version : ' latest'
22
22
23
- # Build the Hugo website
23
+ # 3. Build the Hugo website
24
24
- name : Build Hugo Website
25
25
run : |
26
26
cd website
27
- hugo -d public # Builds the site into the ` public` directory
27
+ hugo -d public # Builds the site into `website/ public`
28
28
29
- # Deploy to GitHub Pages
29
+ # 4. Deploy to GitHub Pages
30
30
- name : Deploy to GitHub Pages
31
31
uses : peaceiris/actions-gh-pages@v3
32
32
with :
You can’t perform that action at this time.
0 commit comments