diff --git a/.github/workflows/release_ruleset.yaml b/.github/workflows/release_ruleset.yaml index 60d5a6c..1648071 100644 --- a/.github/workflows/release_ruleset.yaml +++ b/.github/workflows/release_ruleset.yaml @@ -59,6 +59,16 @@ on: default: true description: Indicator of whether or not this is a prerelease. type: boolean + docs: + default: "" + description: | + Indicator of whether or not to generate starlark documentation from bzl_library targets. + When set, provides the filename of an archive file to produce. + NB: This file must ALSO appear in the `release_files` input in order to be published to the release. + + The archive will be populated with binary protobuf files output by the + [starlark_doc_extract](https://bazel.build/reference/be/general#starlark_doc_extract) rule. + type: string draft: default: false description: | @@ -88,13 +98,31 @@ jobs: external-cache: ${{ inputs.mount_bazel_caches }} repository-cache: ${{ inputs.mount_bazel_caches }} - - name: Test - run: ${{ inputs.bazel_test_command }} --disk_cache=~/.cache/bazel-disk-cache --repository_cache=~/.cache/bazel-repository-cache + - name: Generate starlark documentation + id: generate-docs + if: inputs.docs + env: + USE_BAZEL_VERSION: 7.x + run: | + cd $(mktemp -d) + cat >MODULE.bazel <