Skip to content

Commit 21a5657

Browse files
committed
test: check that docs deploy works
1 parent 27e547c commit 21a5657

File tree

1 file changed

+10
-56
lines changed

1 file changed

+10
-56
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,6 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
test:
12-
name: Test
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
os: [ubuntu-latest]
18-
node-version: [18, 20, 22]
19-
include:
20-
- os: macos-latest
21-
node_version: 20
22-
- os: windows-latest
23-
node_version: 20.13.1 # 20.14.0 keeps causing a native `node::SetCppgcReference+18123` error in Vitest
24-
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v4
27-
28-
- uses: ./.github/actions/setup-and-build
29-
with:
30-
node-version: ${{ matrix.node-version }}
31-
32-
- name: Lint
33-
run: pnpm lint
34-
35-
- name: Test
36-
run: pnpm test
37-
38-
test-e2e:
39-
name: Test E2E
40-
runs-on: ubuntu-latest
41-
steps:
42-
- name: Checkout
43-
uses: actions/checkout@v4
44-
45-
- uses: ./.github/actions/setup-and-build
46-
47-
- name: Install Playwright Dependencies
48-
run: pnpm --filter=tutorialkit-e2e exec playwright install chromium --with-deps
49-
50-
- name: Test
51-
run: pnpm test:e2e
52-
5311
docs:
5412
name: Docs
5513
runs-on: ubuntu-latest
@@ -60,18 +18,14 @@ jobs:
6018
- uses: ./.github/actions/setup-and-build
6119

6220
- name: Build docs
63-
run: |
64-
pnpm run docs:build
65-
pnpm run demo:build
66-
67-
extension:
68-
name: VSCode Extension
69-
runs-on: ubuntu-latest
70-
steps:
71-
- name: Checkout
72-
uses: actions/checkout@v4
21+
run: pnpm run docs:build
7322

74-
- uses: ./.github/actions/setup-and-build
75-
- name: Build extension
76-
run: |
77-
pnpm run extension:build
23+
- name: Deploy documentation
24+
uses: cloudflare/pages-action@v1
25+
with:
26+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
27+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
28+
projectName: tutorialkit-docs-page
29+
workingDirectory: 'docs/tutorialkit.dev'
30+
directory: dist
31+
packageManager: pnpm

0 commit comments

Comments
 (0)