From 7bd53cd9394d7e0e6c027c56c66f7fd3f9301d8c Mon Sep 17 00:00:00 2001 From: Christopher Palmer-Richez Date: Mon, 5 Aug 2024 13:01:06 -0400 Subject: [PATCH] Add workflow to publish docs to pages. --- .github/workflows/publish-docs.yaml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish-docs.yaml diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml new file mode 100644 index 0000000..a3bfcdf --- /dev/null +++ b/.github/workflows/publish-docs.yaml @@ -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 }}