Skip to content

Commit e5faa6c

Browse files
author
ma.jinyun
committed
fix actions/checkout error
1 parent 58c9c28 commit e5faa6c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/gp.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
- name: Build with Hugo
4444
run: hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}"
4545

46+
- name: Check public directory exists
47+
run: |
48+
if [ ! -d "./public" ]; then
49+
echo "public directory does not exist!" && exit 1
50+
fi
51+
4652
- name: Upload artifact
4753
uses: actions/upload-pages-artifact@v3
4854
with:

0 commit comments

Comments
 (0)