Skip to content

Commit ec60f74

Browse files
committed
Fix working directory paths in GitHub Actions workflow
1 parent 36713a2 commit ec60f74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/hugo.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
node-version: '18'
3434

3535
- name: Install npm dependencies
36-
working-directory: docs
3736
run: npm ci
37+
working-directory: ${{ github.workspace }}
3838

3939
- name: Setup Hugo
4040
uses: peaceiris/actions-hugo@v2
@@ -43,13 +43,13 @@ jobs:
4343
extended: true
4444

4545
- name: Build with Hugo
46-
working-directory: docs
4746
run: hugo --minify
47+
working-directory: ${{ github.workspace }}
4848

4949
- name: Upload artifact
5050
uses: actions/upload-pages-artifact@v2
5151
with:
52-
path: docs/public
52+
path: ${{ github.workspace }}/public
5353

5454
deploy:
5555
environment:

0 commit comments

Comments
 (0)