From d0d199a65fd318b88a75ca222c67182584da656e Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 29 Jun 2024 17:22:46 +0200 Subject: [PATCH] Adjust docs publishing workflow. (#15) Ref: https://github.com/ansible-community/github-docs-build/issues/92 --- .github/workflows/docs-pr.yml | 3 +++ .github/workflows/docs-push.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/docs-pr.yml b/.github/workflows/docs-pr.yml index b5a8e0d..7a495c8 100644 --- a/.github/workflows/docs-pr.yml +++ b/.github/workflows/docs-pr.yml @@ -38,12 +38,15 @@ jobs: if: github.repository == 'ansible-collections/community.library_inventory_filtering' permissions: contents: write + pages: write + id-token: write needs: [build-docs] name: Publish Ansible Docs uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main with: artifact-name: ${{ needs.build-docs.outputs.artifact-name }} action: ${{ (github.event.action == 'closed' || needs.build-docs.outputs.changed != 'true') && 'teardown' || 'publish' }} + publish-gh-pages-branch: true secrets: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docs-push.yml b/.github/workflows/docs-push.yml index 53a4a56..2a7c2ba 100644 --- a/.github/workflows/docs-push.yml +++ b/.github/workflows/docs-push.yml @@ -42,10 +42,13 @@ jobs: if: github.repository == 'ansible-collections/community.library_inventory_filtering' permissions: contents: write + pages: write + id-token: write needs: [build-docs] name: Publish Ansible Docs uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main with: artifact-name: ${{ needs.build-docs.outputs.artifact-name }} + publish-gh-pages-branch: true secrets: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}