Skip to content

Commit 00c245f

Browse files
authored
fixing on statement github actions (#48)
fix on statement github actions
1 parent 8401529 commit 00c245f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/website.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
name: Deploy Hugo Website to GitHub Pages
22

3-
43
on:
5-
branches:
6-
- main
4+
push:
5+
branches:
6+
- main
77

88
jobs:
99
build-deploy:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
# Checkout the repository
13+
# 1. Check out the repository
1414
- name: Checkout Repository
1515
uses: actions/checkout@v3
1616

17-
# Set up Hugo
17+
# 2. Set up Hugo
1818
- name: Setup Hugo
1919
uses: peaceiris/actions-hugo@v2
2020
with:
2121
hugo-version: 'latest'
2222

23-
# Build the Hugo website
23+
# 3. Build the Hugo website
2424
- name: Build Hugo Website
2525
run: |
2626
cd website
27-
hugo -d public # Builds the site into the `public` directory
27+
hugo -d public # Builds the site into `website/public`
2828
29-
# Deploy to GitHub Pages
29+
# 4. Deploy to GitHub Pages
3030
- name: Deploy to GitHub Pages
3131
uses: peaceiris/actions-gh-pages@v3
3232
with:

0 commit comments

Comments
 (0)