mirror of https://github.com/astral-sh/ruff
Publish docs and playground on `cargo-dist` release (#12079)
## Summary These are now `post-announce-jobs`. So if they fail, the release itself will still succeed, which seems ok. (If we make them `publish-jobs`, then we might end up publishing to PyPI but failing the release itself if one of these fails.) The intent is that these are still runnable via `workflow_dispatch` too. Closes https://github.com/astral-sh/ruff/issues/12074.
This commit is contained in:
parent
117ab789c9
commit
2b54fab02c
|
|
@ -1,3 +1,7 @@
|
||||||
|
# Publish the Ruff documentation.
|
||||||
|
#
|
||||||
|
# Assumed to run as a subworkflow of .github/workflows/release.yml; specifically, as a post-announce
|
||||||
|
# job within `cargo-dist`.
|
||||||
name: mkdocs
|
name: mkdocs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
@ -7,8 +11,11 @@ on:
|
||||||
description: "The commit SHA, tag, or branch to publish. Uses the default branch if not specified."
|
description: "The commit SHA, tag, or branch to publish. Uses the default branch if not specified."
|
||||||
default: ""
|
default: ""
|
||||||
type: string
|
type: string
|
||||||
release:
|
workflow_call:
|
||||||
types: [published]
|
inputs:
|
||||||
|
plan:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mkdocs:
|
mkdocs:
|
||||||
|
|
@ -1,9 +1,16 @@
|
||||||
|
# Publish the Ruff playground.
|
||||||
|
#
|
||||||
|
# Assumed to run as a subworkflow of .github/workflows/release.yml; specifically, as a post-announce
|
||||||
|
# job within `cargo-dist`.
|
||||||
name: "[Playground] Release"
|
name: "[Playground] Release"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
release:
|
workflow_call:
|
||||||
types: [published]
|
inputs:
|
||||||
|
plan:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
|
|
@ -247,3 +247,21 @@ jobs:
|
||||||
with:
|
with:
|
||||||
plan: ${{ needs.plan.outputs.val }}
|
plan: ${{ needs.plan.outputs.val }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
custom-publish-docs:
|
||||||
|
needs:
|
||||||
|
- plan
|
||||||
|
- announce
|
||||||
|
uses: ./.github/workflows/publish-docs.yml
|
||||||
|
with:
|
||||||
|
plan: ${{ needs.plan.outputs.val }}
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
custom-publish-playground:
|
||||||
|
needs:
|
||||||
|
- plan
|
||||||
|
- announce
|
||||||
|
uses: ./.github/workflows/publish-playground.yml
|
||||||
|
with:
|
||||||
|
plan: ${{ needs.plan.outputs.val }}
|
||||||
|
secrets: inherit
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ local-artifacts-jobs = ["./build-binaries", "./build-docker"]
|
||||||
# Publish jobs to run in CI
|
# Publish jobs to run in CI
|
||||||
publish-jobs = ["./publish-pypi"]
|
publish-jobs = ["./publish-pypi"]
|
||||||
# Announcement jobs to run in CI
|
# Announcement jobs to run in CI
|
||||||
post-announce-jobs = ["./notify-dependents"]
|
post-announce-jobs = ["./notify-dependents", "./publish-docs", "./publish-playground"]
|
||||||
# Skip checking whether the specified configuration files are up to date
|
# Skip checking whether the specified configuration files are up to date
|
||||||
allow-dirty = ["ci"]
|
allow-dirty = ["ci"]
|
||||||
# Whether to install an updater program
|
# Whether to install an updater program
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue