Debian Codegraph @

ansible_collections/community/hashi_vault/.github/workflows/docs-push.yml

raw
1 name: Collection Docs
2 concurrency:
3 group: docs-push-${{ github.sha }}
4 cancel-in-progress: true
5 on:
6 push:
7 branches:
8 - main
9 tags:
10 - '*'
11 schedule:
12 - cron: '0 13 * * *'
13
14 jobs:
15 validate-docs:
16 permissions:
17 contents: read
18 name: Validate Ansible Docs
19 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@main
20 with:
21 init-lenient: false
22 init-fail-on-error: true
23 artifact-upload: false
24
25 build-docs:
26 permissions:
27 contents: read
28 name: Build Ansible Docs
29 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@main
30 with:
31 init-dest-dir: docs/preview
32 # Although we want this to be the most strict, we can't currently achieve this
33 # with the committed init-dest-dir, hence the validate-docs job, which will
34 # prevent publish from running in the case of failures.
35
36 # publish-docs-surge:
37 # # for now we won't run this on forks
38 # if: github.repository == 'ansible-collections/community.hashi_vault'
39 # permissions:
40 # contents: read
41 # needs: [validate-docs, build-docs]
42 # name: Publish Ansible Docs
43 # uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-surge.yml@main
44 # with:
45 # artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
46 # surge-site-name: community-hashi-vault-main.surge.sh
47 # secrets:
48 # SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
49
50 publish-docs-gh-pages:
51 # for now we won't run this on forks
52 if: github.repository == 'ansible-collections/community.hashi_vault'
53 permissions:
54 contents: write
55 pages: write
56 id-token: write
57 needs: [validate-docs, build-docs]
58 name: Publish Ansible Docs
59 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main
60 with:
61 artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
62 secrets:
63 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}