2022-03-01 09:22:12 +00:00
|
|
|
---
|
|
|
|
name: Documentation
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
tags:
|
2022-03-01 18:05:28 +00:00
|
|
|
- "[0-9]+.[0-9]+.[0-9]+"
|
2022-03-01 09:22:12 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
COLORTERM: 'yes'
|
|
|
|
TERM: 'xterm-256color'
|
|
|
|
PYTEST_ADDOPTS: '--color=yes'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'ansible-middleware/keycloak'
|
|
|
|
permissions:
|
|
|
|
actions: write
|
|
|
|
checks: write
|
|
|
|
contents: write
|
|
|
|
deployments: write
|
|
|
|
packages: write
|
|
|
|
pages: write
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: ansible_collections/middleware_automation/keycloak
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
|
|
|
|
- name: Install doc dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install -r ansible_collections/middleware_automation/keycloak/docs/requirements.txt
|
|
|
|
pip install -r ansible_collections/middleware_automation/keycloak/requirements.txt
|
2022-03-30 15:31:15 +00:00
|
|
|
sudo apt install -y sed hub
|
2022-03-01 09:22:12 +00:00
|
|
|
|
|
|
|
- name: Create default collection path
|
|
|
|
run: |
|
|
|
|
mkdir -p /home/runner/.ansible/collections/ansible_collections
|
|
|
|
|
2022-04-07 06:53:43 +00:00
|
|
|
- name: Create changelog and documentation
|
|
|
|
uses: ansible-middleware/collection-docs-action@main
|
|
|
|
with:
|
|
|
|
collection_fqcn: middleware_automation.keycloak
|
|
|
|
collection_repo: ansible-middleware/keycloak
|
|
|
|
dependencies: false
|
|
|
|
commit_changelog: false
|
|
|
|
commit_ghpages: true
|
|
|
|
changelog_release: false
|
|
|
|
generate_docs: true
|
|
|
|
path: ansible_collections/middleware_automation/keycloak
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|