Skip to content

Create Release

Create Release #40

Workflow file for this run

name: Create Release
on:
# Can be triggered from the tag.yaml workflow
workflow_call:
inputs:
tag_name:
required: true
type: string
# In case of problems, let release engineers retry by manually dispatching
# the workflow from the GitHub UI
workflow_dispatch:
inputs:
tag_name:
required: true
type: string
permissions:
id-token: write # Needed to attest provenance
attestations: write # Needed to attest provenance
contents: write # Needed to create release
jobs:
test:
uses: ./.github/workflows/ci.yaml
secrets:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
release:
needs: test
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.2
with:
bazel_test_command: true
prerelease: false
release_files: |
toolchains_llvm_bootstrapped-*.tar.gz
tag_name: ${{ inputs.tag_name || github.ref_name }}
publish:
# Skip BCR publish for prebuilts tags like llvm-* or prebuilts-extras-*.
if: ${{ !startsWith(inputs.tag_name || github.ref_name, 'llvm-') && !startsWith(inputs.tag_name || github.ref_name, 'prebuilts-extras-') }}
needs: release
uses: ./.github/workflows/publish.yml
with:
tag_name: ${{ inputs.tag_name || github.ref_name }}
secrets:
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}