From dd5f4f8f63eace462f20532368a9095ab9709bd4 Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Fri, 3 Oct 2025 14:07:00 -0500 Subject: [PATCH 01/10] fix: add env and pass token within publish-release-to-gh-pages job --- .github/workflows/publish-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index bef04fc..fdfb65e 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -92,6 +92,7 @@ jobs: run: ./scripts/get.sh ".version" "RELEASE_VERSION" publish-release-to-gh-pages: + environment: github-pages needs: get-release-version name: Publish site to `v${{ needs.get-release-version.outputs.RELEASE_VERSION }}` directory of `gh-pages` branch permissions: @@ -99,3 +100,5 @@ jobs: uses: ./.github/workflows/publish-gh-pages.yml with: destination_dir: v${{ needs.get-release-version.outputs.RELEASE_VERSION }} + secrets: + DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} From a2fda9f36dee049db991ab6f7f17733984e48879 Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Fri, 3 Oct 2025 14:07:07 -0500 Subject: [PATCH 02/10] require secret --- .github/workflows/publish-gh-pages.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-gh-pages.yml b/.github/workflows/publish-gh-pages.yml index 26aeaeb..80f4442 100644 --- a/.github/workflows/publish-gh-pages.yml +++ b/.github/workflows/publish-gh-pages.yml @@ -6,6 +6,9 @@ on: destination_dir: required: true type: string + secrets: + DEPLOY_TOKEN: + required: true jobs: publish-to-gh-pages: From 17670650317252ed3fa44df12e38af3a3ce71d57 Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Fri, 3 Oct 2025 14:07:12 -0500 Subject: [PATCH 03/10] remove environment --- .github/workflows/publish-gh-pages.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-gh-pages.yml b/.github/workflows/publish-gh-pages.yml index 80f4442..5d9cdd7 100644 --- a/.github/workflows/publish-gh-pages.yml +++ b/.github/workflows/publish-gh-pages.yml @@ -14,7 +14,6 @@ jobs: publish-to-gh-pages: name: Publish to GitHub Pages runs-on: ubuntu-latest - environment: github-pages steps: - name: Ensure `destination_dir` is not empty if: ${{ inputs.destination_dir == '' }} From 94e35c6fc15884b81c76c5458f904664e5be8ab9 Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Fri, 3 Oct 2025 14:38:05 -0500 Subject: [PATCH 04/10] feat: add deploy_token to main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c9423c2..16aeb06 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -73,3 +73,4 @@ jobs: uses: ./.github/workflows/publish-release.yml secrets: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} From 58fea0c86ba35991a6e65c31c0340549c247eedb Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Fri, 3 Oct 2025 14:41:24 -0500 Subject: [PATCH 05/10] chore: remove environment --- .github/workflows/publish-release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index fdfb65e..56b3a87 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -92,7 +92,6 @@ jobs: run: ./scripts/get.sh ".version" "RELEASE_VERSION" publish-release-to-gh-pages: - environment: github-pages needs: get-release-version name: Publish site to `v${{ needs.get-release-version.outputs.RELEASE_VERSION }}` directory of `gh-pages` branch permissions: From 76d71abd94922bbab1aca048db7e0155fc3c0edc Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Fri, 3 Oct 2025 14:48:50 -0500 Subject: [PATCH 06/10] revert removing environment from publish-to-gh-pages --- .github/workflows/publish-gh-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-gh-pages.yml b/.github/workflows/publish-gh-pages.yml index 5d9cdd7..80f4442 100644 --- a/.github/workflows/publish-gh-pages.yml +++ b/.github/workflows/publish-gh-pages.yml @@ -14,6 +14,7 @@ jobs: publish-to-gh-pages: name: Publish to GitHub Pages runs-on: ubuntu-latest + environment: github-pages steps: - name: Ensure `destination_dir` is not empty if: ${{ inputs.destination_dir == '' }} From aa5da9620e22280d35e7435f6a4aa84c6029212e Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Fri, 3 Oct 2025 14:54:23 -0500 Subject: [PATCH 07/10] fix: add secrets to be passed --- .github/workflows/publish-main-gh-pages.yml | 2 ++ .github/workflows/publish-rc-gh-pages.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/publish-main-gh-pages.yml b/.github/workflows/publish-main-gh-pages.yml index 0fb371c..8509a74 100644 --- a/.github/workflows/publish-main-gh-pages.yml +++ b/.github/workflows/publish-main-gh-pages.yml @@ -11,3 +11,5 @@ jobs: secrets: inherit with: destination_dir: latest + secrets: + DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} diff --git a/.github/workflows/publish-rc-gh-pages.yml b/.github/workflows/publish-rc-gh-pages.yml index 3dc6a4f..afe48ec 100644 --- a/.github/workflows/publish-rc-gh-pages.yml +++ b/.github/workflows/publish-rc-gh-pages.yml @@ -24,3 +24,5 @@ jobs: needs: get-release-version with: destination_dir: rc-${{ needs.get-release-version.outputs.release-version }} + secrets: + DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} From 68dc42423293c6787438c9791e492ab02be518d9 Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Fri, 3 Oct 2025 14:59:44 -0500 Subject: [PATCH 08/10] Revert "fix: add secrets to be passed" This reverts commit aa5da9620e22280d35e7435f6a4aa84c6029212e. --- .github/workflows/publish-main-gh-pages.yml | 2 -- .github/workflows/publish-rc-gh-pages.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/.github/workflows/publish-main-gh-pages.yml b/.github/workflows/publish-main-gh-pages.yml index 8509a74..0fb371c 100644 --- a/.github/workflows/publish-main-gh-pages.yml +++ b/.github/workflows/publish-main-gh-pages.yml @@ -11,5 +11,3 @@ jobs: secrets: inherit with: destination_dir: latest - secrets: - DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} diff --git a/.github/workflows/publish-rc-gh-pages.yml b/.github/workflows/publish-rc-gh-pages.yml index afe48ec..3dc6a4f 100644 --- a/.github/workflows/publish-rc-gh-pages.yml +++ b/.github/workflows/publish-rc-gh-pages.yml @@ -24,5 +24,3 @@ jobs: needs: get-release-version with: destination_dir: rc-${{ needs.get-release-version.outputs.release-version }} - secrets: - DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} From 46f23fbfe2d6f299e6f6b1c830f846ed74258d1b Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Tue, 7 Oct 2025 09:27:07 -0500 Subject: [PATCH 09/10] fix: require deploy_token for publish-release.yml --- .github/workflows/publish-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 56b3a87..efb3773 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -5,6 +5,8 @@ on: secrets: NPM_TOKEN: required: true + DEPLOY_TOKEN: + required: true jobs: publish-release: From bf8d23643732f37e81587a04c6971a416ea8d1ee Mon Sep 17 00:00:00 2001 From: imblue-dabadee Date: Tue, 7 Oct 2025 09:27:18 -0500 Subject: [PATCH 10/10] explicitly specify the DEPLOY_TOKEN --- .github/workflows/publish-main-gh-pages.yml | 3 ++- .github/workflows/publish-rc-gh-pages.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-main-gh-pages.yml b/.github/workflows/publish-main-gh-pages.yml index 0fb371c..8c8f442 100644 --- a/.github/workflows/publish-main-gh-pages.yml +++ b/.github/workflows/publish-main-gh-pages.yml @@ -8,6 +8,7 @@ jobs: publish-to-gh-pages: name: Publish build to `latest` directory of `gh-pages` branch uses: ./.github/workflows/publish-gh-pages.yml - secrets: inherit with: destination_dir: latest + secrets: + DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} diff --git a/.github/workflows/publish-rc-gh-pages.yml b/.github/workflows/publish-rc-gh-pages.yml index 3dc6a4f..dd80994 100644 --- a/.github/workflows/publish-rc-gh-pages.yml +++ b/.github/workflows/publish-rc-gh-pages.yml @@ -20,7 +20,8 @@ jobs: publish-to-gh-pages: name: Publish build to `rc-${{ needs.get-release-version.outputs.release-version }}` directory of `gh-pages` branch uses: ./.github/workflows/publish-gh-pages.yml - secrets: inherit needs: get-release-version with: destination_dir: rc-${{ needs.get-release-version.outputs.release-version }} + secrets: + DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}