Skip to content

Commit 03ecb2a

Browse files
committed
docs: fix CF deploy
1 parent 1918893 commit 03ecb2a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/docs.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,23 @@ jobs:
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 5
1717
steps:
18-
- uses: actions/checkout@v4
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
token: ${{ secrets.PAT_TOKEN }}
1923
- uses: actions/setup-node@v4
2024
with:
2125
node_version: 20
22-
- run: npm ci
23-
run: npm run build
26+
- run: npm install
27+
run: cd documentation && npm install && npm run install-docs-deps && npm run build:docs
2428
- name: Deploy to Cloudflare Pages
2529
uses: andykenward/[email protected]
2630
id: pages
2731
with:
2832
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2933
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3034
cloudflare-project-name: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
31-
directory: dist
35+
directory: documentation/site
3236
github-token: ${{ secrets.PAT_TOKEN }}
3337
github-environment: ${{ secrets.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)