Debian Codegraph @

ansible_collections/community/docker/.github/workflows/docs-push.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 name: Collection Docs
7 concurrency:
8 group: docs-push-${{ github.sha }}
9 cancel-in-progress: true
10 'on':
11 push:
12 branches:
13 - main
14 - stable-*
15 tags:
16 - '*'
17 # Run CI once per day (at 09:00 UTC)
18 schedule:
19 - cron: '0 9 * * *'
20 # Allow manual trigger (for newer antsibull-docs, sphinx-ansible-theme, ... versions)
21 workflow_dispatch:
22
23 jobs:
24 build-docs:
25 permissions:
26 contents: read
27 name: Build Ansible Docs
28 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@main
29 with:
30 collection-name: community.docker
31 init-lenient: false
32 init-fail-on-error: true
33 squash-hierarchy: true
34 init-project: Community.Docker Collection
35 init-copyright: Community.Docker Contributors
36 init-title: Community.Docker Collection Documentation
37 init-html-short-title: Community.Docker Collection Docs
38 init-extra-html-theme-options: |
39 documentation_home_url=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/branch/main/
40 extra-collections: community.library_inventory_filtering_v1
41
42 publish-docs-gh-pages:
43 # for now we won't run this on forks
44 if: github.repository == 'ansible-collections/community.docker'
45 permissions:
46 contents: write
47 pages: write
48 id-token: write
49 needs: [build-docs]
50 name: Publish Ansible Docs
51 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main
52 with:
53 artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
54 publish-gh-pages-branch: true
55 secrets:
56 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}