From 12ee6165f9e5776e58b00dad3e6865a3b012fc07 Mon Sep 17 00:00:00 2001 From: Oli Ramsay Date: Tue, 1 Jul 2025 10:40:39 +0200 Subject: [PATCH] adding preview environment for PRs --- .github/workflows/docs-preview.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/docs-preview.yml diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml new file mode 100644 index 00000000..aa670946 --- /dev/null +++ b/.github/workflows/docs-preview.yml @@ -0,0 +1,22 @@ +name: Docs Preview + +on: [pull_request] + +jobs: + preview-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install Mintlify CLI + run: npm install -g mint + + - name: Install cloudflared + run: npm install -g cloudflared + + - name: Start Mintlify Docs + run: mint dev & + + - name: Start Tunnel + run: cloudflared tunnel --url http://localhost:3000 \ No newline at end of file