-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR #1001/35dddca backport] [stable-4] Publish push-based docsite to …
…GitHub pages (#1003) [PR #1001/35dddca backport] [stable-4] Publish push-based docsite to GitHub pages SUMMARY Manual backport of #1001 Adds a GitHub action to automatically publish the collection documentation to GitHub pages Additional things this enables (via docsite/links.yml): "Edit on GitHub" button automatically added to docs pages Communications links to the matrix and IRC rooms ISSUE TYPE Docs Pull Request COMPONENT NAME docs/ README.md .github/workflows/ ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
- Loading branch information
Showing
50 changed files
with
84 additions
and
37,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Collection Docs | ||
concurrency: | ||
group: docs-push-${{ github.sha }} | ||
cancel-in-progress: true | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- stable-* | ||
tags: | ||
- '*' | ||
schedule: | ||
- cron: '0 12 * * *' | ||
|
||
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/amazon.aws' | ||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.