summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/windows/.github/workflows/docs-push.yml
blob: 736e4db6060b61a53f0c4997f1c5b8cdc291796d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Collection Docs
concurrency:
  group: docs-push-${{ github.sha }}
  cancel-in-progress: true
"on":
  push:
    branches:
      - main
    tags:
      - "*"
  schedule:
    - cron: "0 13 * * *"

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:
      init-lenient: false
      init-fail-on-error: true

  publish-docs-gh-pages:
    # use to prevent running on forks
    if: github.repository == 'ansible-collections/community.windows'
    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 }}