From 6ef7d17be337b43d7f447523eb89bcb8f574bf05 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Sat, 6 Jan 2024 21:56:12 -0500 Subject: [PATCH 1/2] Pin docs to known good nightly Also run on pull requests just for double checking --- .github/workflows/docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c908bd5..b131dc0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,6 +4,7 @@ on: push: branches: - main + pull_request: workflow_dispatch: jobs: @@ -22,7 +23,7 @@ jobs: - uses: rust3ds/test-runner/setup@v1 with: - toolchain: nightly + toolchain: nightly-2023-06-01 - name: Build workspace docs run: cargo 3ds --verbose doc --verbose --no-deps --workspace From 63349bbb135f2d3fbd30478c280e0c6b24c62bc9 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Sat, 6 Jan 2024 22:04:40 -0500 Subject: [PATCH 2/2] Don't try to publish on PR --- .github/workflows/docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b131dc0..165517a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -48,6 +48,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: build + if: github.ref_name == 'main' permissions: pages: write id-token: write