Skip to content

Commit bd01272

Browse files
Merge pull request #7 from no-witness-labs/fix/deploy-docs-3
ci: fix artifacts
2 parents 00df4f6 + 4e617a5 commit bd01272

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767

6868
- run: pnpm turbo run docgen --filter=@evolution-sdk/evolution
6969

70-
- run: pnpm turbo run build --filter=@evolution-sdk/docs
70+
# Build the docs with Next.js static export (output: export in next.config.js)
71+
- run: pnpm --filter=@evolution-sdk/docs run build
7172

7273
- id: cache-docs-output
7374
uses: actions/cache@v4
@@ -77,6 +78,11 @@ jobs:
7778
restore-keys: |
7879
docs-output-
7980
81+
# Add debug step to check if the output directory exists
82+
- name: Debug output directory
83+
run: |
84+
ls -la docs/
85+
8086
- uses: actions/upload-pages-artifact@v3
8187
with:
8288
path: docs/out

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "next dev",
88
"build": "next build",
99
"start": "next start",
10-
"export": "next build && next export",
10+
"export": "next build",
1111
"copy-evolution-docs": "node scripts/copy-evolution-docs.mjs",
1212
"prebuild": "pnpm run copy-evolution-docs"
1313
},

0 commit comments

Comments
 (0)