Collection Docs #1843
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Collection Docs | |
| concurrency: | |
| group: docs-push-${{ github.sha }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| schedule: | |
| - cron: '0 13 * * *' | |
| permissions: | |
| contents: read # Required for reading collection content | |
| jobs: | |
| build-docs: | |
| permissions: | |
| contents: read # Required for reading collection content | |
| name: Build Ansible Docs | |
| uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@50bb8f670ad5ff11443bd94e51369debb8d34775 # main | |
| with: | |
| init-lenient: false | |
| init-fail-on-error: true | |
| publish-docs-gh-pages: | |
| # for now we won't run this on forks | |
| if: github.repository == 'lowlydba/lowlydba.sqlserver' | |
| permissions: | |
| contents: write # Required for writing release/tag artifacts | |
| pages: write # Required for publishing docs to GitHub Pages | |
| id-token: write # Required for OIDC authentication | |
| needs: [build-docs] | |
| name: Publish Ansible Docs | |
| uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@50bb8f670ad5ff11443bd94e51369debb8d34775 # main | |
| with: | |
| artifact-name: ${{ needs.build-docs.outputs.artifact-name }} | |
| secrets: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |