Skip to content

Commit 5356a99

Browse files
committed
Add Ansible documentation linting and construction workflows
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent fdab61d commit 5356a99

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/publish_docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
3+
name: Publish documentation
4+
5+
on:
6+
push:
7+
branches:
8+
- 'main'
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-ansible-docs:
14+
name: Build Ansible Docs
15+
uses: cloudera-labs/github-actions/.github/workflows/construct-ansible-docs.yml@v1
16+
with:
17+
pages-upload: true
18+
directory-upload: true
19+
antsibull-log-upload: true
20+
21+
publish-ansible-docs:
22+
name: Publish Ansible Docs
23+
needs: build-ansible-docs
24+
runs-on: ubuntu-latest
25+
permissions:
26+
pages: write
27+
id-token: write
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
steps:
32+
- name: Deploy Github Pages
33+
id: deployment
34+
uses: actions/deploy-pages@v2
35+
with:
36+
artifact_name: github-pages
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
3+
name: Validate Pull Request documentation
4+
5+
on:
6+
pull_request:
7+
branches:
8+
- 'release/**'
9+
- 'devel'
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
validate-docs:
15+
name: Validate Ansible Docs
16+
uses: cloudera-labs/github-actions/.github/workflows/lint-ansible-docs.yml@v1
17+
with:
18+
antsibull-log-upload: true
19+
collection-namespace: cloudera
20+
collection-name: exe

0 commit comments

Comments
 (0)