Skip to content

Commit 7f63f70

Browse files
committed
fix: cd into docs-site when needed
1 parent 369b9c8 commit 7f63f70

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/gen-fern-preview.yml renamed to .github/workflows/preview-fern-docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414

1515
steps:
16-
- name: Checkout AA-SDK
16+
- name: Checkout aa-sdk
1717
uses: actions/checkout@v4
1818

1919
- name: Download Alchemy Docs Repo
@@ -29,10 +29,11 @@ jobs:
2929
run: |
3030
mkdir -p docs-site/account-kit
3131
cp -r docs/* docs-site/account-kit/
32-
cd docs-site
3332
3433
- name: Insert Account Kit docs.yml into docs-site/fern/docs.yml
35-
run: account-kit/scripts/insert-docs.sh
34+
run: |
35+
cd docs-site
36+
account-kit/scripts/insert-docs.sh
3637
3738
- name: Install Fern CLI
3839
run: npm install -g fern-api
@@ -42,6 +43,7 @@ jobs:
4243
env:
4344
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
4445
run: |
46+
cd docs-site
4547
OUTPUT=$(fern generate --docs --preview 2>&1) || true
4648
echo "$OUTPUT"
4749
URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')

0 commit comments

Comments
 (0)