2022-11-26 08:38:36 +00:00
|
|
|
---
|
|
|
|
# Copyright (c) Ansible Project
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
name: Collection Docs
|
|
|
|
concurrency:
|
|
|
|
group: docs-push-${{ github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- stable-*
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
# Run CI once per day (at 09:00 UTC)
|
|
|
|
schedule:
|
|
|
|
- cron: '0 9 * * *'
|
2022-12-07 18:54:22 +00:00
|
|
|
# Allow manual trigger (for newer antsibull-docs, sphinx-ansible-theme, ... versions)
|
|
|
|
workflow_dispatch:
|
2022-11-26 08:38:36 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-docs:
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
name: Build Ansible Docs
|
|
|
|
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@main
|
|
|
|
with:
|
2022-11-27 16:44:19 +00:00
|
|
|
collection-name: community.crypto
|
2022-11-26 08:38:36 +00:00
|
|
|
init-lenient: false
|
|
|
|
init-fail-on-error: true
|
|
|
|
squash-hierarchy: true
|
2022-12-18 20:50:28 +00:00
|
|
|
init-project: Community.Crypto Collection
|
|
|
|
init-copyright: Community.Crypto Contributors
|
|
|
|
init-title: Community.Crypto Collection Documentation
|
|
|
|
init-html-short-title: Community.Crypto Collection Docs
|
|
|
|
init-extra-html-theme-options: |
|
|
|
|
documentation_home_url=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/branch/main/
|
2022-11-26 08:38:36 +00:00
|
|
|
|
|
|
|
publish-docs-gh-pages:
|
|
|
|
# for now we won't run this on forks
|
|
|
|
if: github.repository == 'ansible-collections/community.crypto'
|
|
|
|
permissions:
|
|
|
|
contents: write
|
2024-06-29 15:23:11 +00:00
|
|
|
pages: write
|
|
|
|
id-token: write
|
2022-11-26 08:38:36 +00:00
|
|
|
needs: [build-docs]
|
|
|
|
name: Publish Ansible Docs
|
|
|
|
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main
|
|
|
|
with:
|
|
|
|
artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
|
2024-06-29 15:23:11 +00:00
|
|
|
publish-gh-pages-branch: true
|
2022-11-26 08:38:36 +00:00
|
|
|
secrets:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|