Skip to content

Commit 8729ae5

Browse files
fix: update working directory paths in docs deployment workflow
1 parent 0eb014b commit 8729ae5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/docs_astro_deploy.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,20 @@ jobs:
3333
build:
3434
name: Build
3535
runs-on: ubuntu-latest
36-
defaults:
37-
run:
38-
working-directory: docs
3936

4037
steps:
4138
- name: Checkout
4239
uses: actions/checkout@v4
4340
- name: Detect package manager
4441
id: detect-package-manager
4542
run: |
46-
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
43+
if [ -f "${{ github.workspace }}/docs/yarn.lock" ]; then
4744
echo "manager=yarn" >> $GITHUB_OUTPUT
4845
echo "command=install" >> $GITHUB_OUTPUT
4946
echo "runner=yarn" >> $GITHUB_OUTPUT
5047
echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT
5148
exit 0
52-
elif [ -f "${{ github.workspace }}/package.json" ]; then
49+
elif [ -f "${{ github.workspace }}/docs/package.json" ]; then
5350
echo "manager=npm" >> $GITHUB_OUTPUT
5451
echo "command=ci" >> $GITHUB_OUTPUT
5552
echo "runner=npx --no-install" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)