Skip to content

Collection Docs

Collection Docs #797

Workflow file for this run

name: Collection Docs
concurrency:
group: docs-push-${{ github.sha }}
cancel-in-progress: true
"on":
push:
branches:
- main
tags:
- "*"
schedule:
- cron: "0 13 * * *"
jobs:
build-docs:
permissions:
contents: read
name: Build Ansible Docs
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@main
with:
init-lenient: false
init-fail-on-error: true
publish-docs-gh-pages:
# use to prevent running on forks
if: github.repository == 'ansible-collections/microsoft.ad'
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 }}