Skip to content

Commit a9dab60

Browse files
authored
Adjust docs publishing workflow. (#773)
Ref: ansible-community/github-docs-build#92
1 parent e6643fd commit a9dab60

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/docs-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ jobs:
3838
if: github.repository == 'ansible-collections/community.crypto'
3939
permissions:
4040
contents: write
41+
pages: write
42+
id-token: write
4143
needs: [build-docs]
4244
name: Publish Ansible Docs
4345
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main
4446
with:
4547
artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
4648
action: ${{ (github.event.action == 'closed' || needs.build-docs.outputs.changed != 'true') && 'teardown' || 'publish' }}
49+
publish-gh-pages-branch: true
4750
secrets:
4851
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4952

.github/workflows/docs-push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ jobs:
4343
if: github.repository == 'ansible-collections/community.crypto'
4444
permissions:
4545
contents: write
46+
pages: write
47+
id-token: write
4648
needs: [build-docs]
4749
name: Publish Ansible Docs
4850
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main
4951
with:
5052
artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
53+
publish-gh-pages-branch: true
5154
secrets:
5255
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)