diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 773f45df9..5ed4a5ec3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,7 +77,8 @@ jobs: artifact_name: coverage permissions: contents: write - secrets: inherit + secrets: + PUBLISH_DOCS_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }} is-release: name: Determine whether this is a release merge commit diff --git a/.github/workflows/publish-gh-pages.yml b/.github/workflows/publish-gh-pages.yml index 965491564..f3ae34c1a 100644 --- a/.github/workflows/publish-gh-pages.yml +++ b/.github/workflows/publish-gh-pages.yml @@ -15,6 +15,9 @@ on: description: 'Name of artifact to download' required: true type: string + secrets: + PUBLISH_DOCS_TOKEN: + required: true jobs: publish: @@ -33,6 +36,6 @@ jobs: - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e with: - personal_token: ${{ secrets.PUBLISH_PAGES_TOKEN }} + personal_token: ${{ secrets.PUBLISH_DOCS_TOKEN }} publish_dir: ${{ inputs.publish_dir }} destination_dir: ${{ inputs.destination_dir }}