Skip to content

Commit ce21fe3

Browse files
committed
Refactor GitHub Actions workflow to set working directory for build steps
1 parent 5071891 commit ce21fe3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,21 @@ jobs:
3030
submodules: recursive
3131
fetch-depth: 0
3232

33-
- name: Print working directory before build
33+
- name: Print working directory
3434
run: |
3535
echo "Current directory: $(pwd)"
3636
ls -la
37+
working-directory: docs
3738

3839
- name: Install Hugo CLI
3940
run: |
4041
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
4142
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
43+
working-directory: docs
4244

4345
- name: Hugo mod tidy
4446
run: hugo mod tidy
47+
working-directory: docs
4548

4649
- name: Setup Pages
4750
id: pages
@@ -55,6 +58,7 @@ jobs:
5558
HUGO_ENVIRONMENT: production
5659
HUGO_ENV: production
5760
run: hugo --gc --destination ./public --baseURL "${{ steps.pages.outputs.base_url }}/"
61+
working-directory: docs
5862

5963
- name: "Debug: List public folder after build"
6064
run: |

0 commit comments

Comments
 (0)