Skip to content

Bazel Release

Bazel Release #1

# Prepare a release specifically for Bazel users, including a pre-built protoc.
name: Bazel Release
on:
# Can be triggered from the GitHub Actions ui, using the "Run workflow" button on
# https://github.com/protocolbuffers/protobuf/actions/workflows/release_bazel_module.yaml
# TODO: consider automating the trigger from a new release being created
workflow_dispatch:
inputs:
tag_name:
description: git tag that has the protoc release artifact
required: true
type: string
permissions:
id-token: write
attestations: write
contents: write
jobs:
release:
uses: bazel-contrib/.github/.github/workflows/[email protected]
with:
release_files: protobuf-*.tar.gz
prerelease: false
tag_name: ${{ inputs.tag_name }}
# The release was already created by Google-internal mechanism,
# so there aren't any useful assertions to make here.
bazel_test_command: 'true'
publish:
needs: release
uses: ./.github/workflows/publish_to_bcr.yaml
with:
tag_name: ${{ inputs.tag_name }}
secrets:
BCR_PUBLISH_TOKEN: ${{ secrets.BCR_PUBLISH_TOKEN }}