Skip to content

Commit 12ee616

Browse files
committed
adding preview environment for PRs
1 parent 5c050e7 commit 12ee616

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/docs-preview.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docs Preview
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
preview-docs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v3
11+
12+
- name: Install Mintlify CLI
13+
run: npm install -g mint
14+
15+
- name: Install cloudflared
16+
run: npm install -g cloudflared
17+
18+
- name: Start Mintlify Docs
19+
run: mint dev &
20+
21+
- name: Start Tunnel
22+
run: cloudflared tunnel --url http://localhost:3000

0 commit comments

Comments
 (0)