Skip to content

Commit a379b51

Browse files
committed
update build script
1 parent b463a1c commit a379b51

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/hugo.yaml

+4-7
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ jobs:
6060
--gc \
6161
--minify \
6262
--baseURL "${{ steps.pages.outputs.base_url }}/"
63-
- name: Upload artifact
64-
uses: actions/upload-pages-artifact@v2
65-
with:
66-
path: ./public
67-
- name: Build with Hugo
63+
- name: Build with Hugo Staging
6864
env:
6965
# For maximum backward compatibility with Hugo modules
7066
HUGO_ENVIRONMENT: production
@@ -74,11 +70,12 @@ jobs:
7470
hugo \
7571
--gc \
7672
--minify \
77-
--baseURL "${{ steps.pages.outputs.base_url }}/staging"
73+
--baseURL "${{ steps.pages.outputs.base_url }}/staging"
74+
--publishDir "/public/staging"
7875
- name: Upload artifact
7976
uses: actions/upload-pages-artifact@v2
8077
with:
81-
path: ./public/staging
78+
path: ./public
8279

8380
# Deployment job
8481
deploy:

0 commit comments

Comments
 (0)