From cbfaf725ff20441c4597d5c672c2cac1c8cfa46e Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 1 Jul 2025 14:14:17 -0500 Subject: [PATCH] Publish documentation on release (#731) Extends #730, separated so we can test publishing the documentation manually before doing so on release. This is copied from ruff. --- .github/workflows/release.yml | 9 +++++++++ dist-workspace.toml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e98798a..24b5342 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -261,3 +261,12 @@ jobs: echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/* + + custom-publish-docs: + needs: + - plan + - announce + uses: ./.github/workflows/publish-docs.yml + with: + plan: ${{ needs.plan.outputs.val }} + secrets: inherit diff --git a/dist-workspace.toml b/dist-workspace.toml index 28fd1ff..f076c30 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -56,7 +56,7 @@ local-artifacts-jobs = ["./build-binaries", "./build-docker"] # Publish jobs to run in CI publish-jobs = ["./publish-pypi"] # Post-announce jobs to run in CI -post-announce-jobs = [] +post-announce-jobs = ["./publish-docs"] # Custom permissions for GitHub Jobs github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read" } } # Whether to install an updater program