Skip to content

Merge pull request #16 from theko2fi/dev/0.3.0 #77

Merge pull request #16 from theko2fi/dev/0.3.0

Merge pull request #16 from theko2fi/dev/0.3.0 #77

Workflow file for this run

---
# 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
- documentation
tags:
- '*'
# Run CI once per day (at 09:00 UTC)
#schedule:
#- cron: '0 9 * * *'
# Allow manual trigger (for newer antsibull-docs, sphinx-ansible-theme, ... versions)
workflow_dispatch:
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:
collection-name: theko2fi.multipass
init-lenient: false
init-fail-on-error: true
squash-hierarchy: true
init-project: Theko2fi.Multipass Collection
init-copyright: Theko2fi.Multipass Contributors
init-title: Theko2fi.Multipass Collection Documentation
init-html-short-title: Theko2fi.Multipass Collection Docs
init-extra-html-theme-options: |
documentation_home_url=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/branch/main/
init-append-conf-py: "html_js_files=[('https://eu.umami.is/script.js', {'data-website-id': '0086c656-f41e-4131-ac3f-59bf72b1c4d8','defer': 'defer'})]"
publish-docs-gh-pages:
# for now we won't run this on forks
if: github.repository == 'theko2fi/ansible-multipass-collection'
permissions:
contents: write
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 }}
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}