Files
FTXUI/.github/workflows/publish.yaml
Workflow config file is invalid. Please check your config file: yaml: line 33: did not find expected key
2025-05-01 10:33:19 +02:00

42 lines
1.1 KiB
YAML

name: "Publish to Bazel Central Registry"
on:
# Manual kick-off (you type the tag)
workflow_dispatch:
inputs:
tag_name:
description: "Tag to publish"
required: true
type: string
# Fire as soon as the Release workflow completes
workflow_run:
workflows:
- Release
types:
- completed
permissions:
attestations: write
contents: write
id-token: write
jobs:
publish:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.0.4
# Only run on manual dispatch, or when Release finishes successfully
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
with:
# If manual: use the input, otherwise grab the tag from the completed run
tag_name: ${{
github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name ||
github.event_name == 'workflow_run' && github.event.workflow_run.head_branch
}}
registry_fork: ArthurSonzogni/bazel-central-registry
secrets:
publish_token: ${{ secrets.PUBLISH_TOKEN }}