-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to publish docs to pages.
- Loading branch information
Christopher Palmer-Richez
committed
Aug 5, 2024
1 parent
14f796d
commit 7bd53cd
Showing
1 changed file
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: publish-docs | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
- release/v* | ||
|
||
jobs: | ||
build-docs: | ||
permissions: | ||
contents: read | ||
name: Build 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: | ||
if: github.repository == 'crichez/crichez.secureboot' | ||
name: Publish Docs | ||
permissions: | ||
contents: write | ||
pages: write | ||
id-token: write | ||
needs: | ||
- build-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 }} |