Debian Codegraph @

ansible_collections/community/routeros/.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 05:15 UTC)
18 schedule:
19 - cron: '15 5 * * *'
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.routeros
31 init-lenient: true
32 init-fail-on-error: true
33 squash-hierarchy: true
34 init-project: Community.Routeros Collection
35 init-copyright: Community.Routeros Contributors
36 init-title: Community.Routeros Collection Documentation
37 init-html-short-title: Community.Routeros 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
41 publish-docs-gh-pages:
42 # for now we won't run this on forks
43 if: github.repository == 'ansible-collections/community.routeros'
44 permissions:
45 contents: write
46 pages: write
47 id-token: write
48 needs: [build-docs]
49 name: Publish Ansible Docs
50 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main
51 with:
52 artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
53 publish-gh-pages-branch: true
54 secrets:
55 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}