Debian Codegraph @

ansible_collections/lowlydba/sqlserver/.github/workflows/docs-push.yml

raw
1 name: Collection Docs
2 concurrency:
3 group: docs-push-${{ github.sha }}
4 cancel-in-progress: true
5 on:
6 push:
7 branches:
8 - main
9 tags:
10 - '*'
11 schedule:
12 - cron: '0 13 * * *'
13
14 permissions:
15 contents: read # Required for reading collection content
16
17 jobs:
18 build-docs:
19 permissions:
20 contents: read # Required for reading collection content
21 name: Build Ansible Docs
22 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@50bb8f670ad5ff11443bd94e51369debb8d34775 # main
23 with:
24 init-lenient: false
25 init-fail-on-error: true
26
27 publish-docs-gh-pages:
28 # for now we won't run this on forks
29 if: github.repository == 'lowlydba/lowlydba.sqlserver'
30 permissions:
31 contents: write # Required for writing release/tag artifacts
32 pages: write # Required for publishing docs to GitHub Pages
33 id-token: write # Required for OIDC authentication
34 needs: [build-docs]
35 name: Publish Ansible Docs
36 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@50bb8f670ad5ff11443bd94e51369debb8d34775 # main
37 with:
38 artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
39 secrets:
40 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}