Skip to content

Create Release

Create Release #64

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 }}

Check failure on line 27 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Create Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 27, Col: 27): Invalid secret, BUILDBUDDY_API_KEY is not defined in the referenced workflow.
release:
needs: test
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.2
with:
bazel_test_command: true
prerelease: false
release_files: |
hermetic-llvm-*.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 }}