From fd2b876b4a05f338a916df8f28ffc5d803ed1c4c Mon Sep 17 00:00:00 2001 From: Adam Zsarnoczay <33822153+zsarnoczay@users.noreply.github.com> Date: Thu, 5 Dec 2024 12:07:23 -0800 Subject: [PATCH 1/2] update docs to build off of main branch --- .github/workflows/build_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 6bd56f4e..76f12689 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -2,7 +2,7 @@ name: Build and deploy documentation on: push: branches: - - docs + - main jobs: build-docs: runs-on: ubuntu-latest From 9d50a15945f7dd07faf89b256957619d7696c819 Mon Sep 17 00:00:00 2001 From: Adam Zsarnoczay <33822153+zsarnoczay@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:24:56 -0800 Subject: [PATCH 2/2] grant write permissions for the build_docs action --- .github/workflows/build_docs.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 76f12689..b445e269 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -3,6 +3,8 @@ on: push: branches: - main +permissions: + contents: write jobs: build-docs: runs-on: ubuntu-latest @@ -42,4 +44,4 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: doc/build/html + publish_dir: ./doc/build/html