mirror of
https://github.com/astral-sh/ty.git
synced 2025-12-23 08:48:09 +00:00
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.
This commit is contained in:
parent
cd4ca0bd00
commit
cbfaf725ff
2 changed files with 10 additions and 1 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue