Debian Codegraph @

ansible_collections/community/windows/.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 jobs:
15 build-docs:
16 permissions:
17 contents: read
18 name: Build Ansible Docs
19 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@main
20 with:
21 init-lenient: false
22 init-fail-on-error: true
23
24 publish-docs-gh-pages:
25 # use to prevent running on forks
26 if: github.repository == 'ansible-collections/community.windows'
27 permissions:
28 contents: write
29 pages: write
30 id-token: write
31 needs: [build-docs]
32 name: Publish Ansible Docs
33 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main
34 with:
35 artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
36 publish-gh-pages-branch: true
37 secrets:
38 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}