From a84b761bfd769c3d81510dcb0de734c2b8669fe5 Mon Sep 17 00:00:00 2001 From: Sam Hellawell Date: Wed, 9 Oct 2024 23:07:24 +0100 Subject: [PATCH 1/2] Fix deploy docs action --- .github/workflows/docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2a1dc3a64..2c46ba087 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -3,6 +3,7 @@ on: push: branches: - master + - fix/deploy-docs jobs: build-and-deploy: runs-on: ubuntu-latest @@ -19,6 +20,7 @@ jobs: - name: Install and Build 🔧 # Only need to install jsdoc package here and then run docs script run: | + npm install -g turbo yarn install --frozen-lockfile --ignore-scripts turbo run docs From f606b35f231b0b583a39c1a29356f0851b2294ed Mon Sep 17 00:00:00 2001 From: Sam Hellawell Date: Wed, 9 Oct 2024 23:17:37 +0100 Subject: [PATCH 2/2] Restore mdbook script --- .github/workflows/docs.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2c46ba087..af1b27cd3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,7 +30,7 @@ jobs: mdbook-version: "latest" - name: Generate mdBook - run: turbo run mdbook + run: yarn run mdbook - name: Install SSH Client 🔑 uses: webfactory/ssh-agent@v0.4.1 diff --git a/package.json b/package.json index 7bb5b39a4..abde1ffd4 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ }, "packageManager": "yarn@1.22.22", "scripts": { + "mdbook": "mdbook build tutorials --dest-dir ../out/tutorials", "publish-packages": "changeset version && changeset publish" } }