3 Commits

Author SHA1 Message Date
ArthurSonzogni
ba6716c6e1 Fix publish workflow 2025-05-01 10:33:19 +02:00
ArthurSonzogni
694fa6bf5c Fix publish workflow 2025-05-01 10:09:18 +02:00
Arthur Sonzogni
625915b52c Fix publish workflow (#1041) 2025-05-01 10:06:49 +02:00
6 changed files with 32 additions and 34 deletions

View File

@@ -1,33 +1,41 @@
name: "Publish to Bazel Central Registry" name: "Publish to Bazel Central Registry"
on: on:
# On manual trigger: # Manual kick-off (you type the tag)
workflow_dispatch: workflow_dispatch:
inputs: inputs:
tag_name: tag_name:
description: "Tag to publish"
required: true required: true
type: string type: string
# Called from the release workflow: # Fire as soon as the Release workflow completes
workflow_call: workflow_run:
inputs: workflows:
tag_name: - Release
required: true types:
type: string - completed
secrets:
PUBLISH_TOKEN:
required: true
type: string
jobs: permissions:
attestations: write
contents: write
id-token: write
jobs:
publish: publish:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.0.4 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: with:
tag_name: ${{ inputs.tag_name }} # 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 registry_fork: ArthurSonzogni/bazel-central-registry
permissions:
attestations: write
contents: write
id-token: write
secrets: secrets:
publish_token: ${{ secrets.PUBLISH_TOKEN }} publish_token: ${{ secrets.PUBLISH_TOKEN }}

View File

@@ -13,6 +13,8 @@ permissions:
# Needed to mint attestations # Needed to mint attestations
id-token: write id-token: write
attestations: write attestations: write
# Needed to upload release assets
contents: write
jobs: jobs:
release: release:
@@ -114,15 +116,3 @@ jobs:
upload_url: ${{ needs.release.outputs.upload_url }} upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: source.tar.gz.intoto.jsonl asset_path: source.tar.gz.intoto.jsonl
overwrite: true overwrite: true
# Publish to Bazel Central Registry.
# This call the .github/workflows/publish.yaml workflow.
publish_to_bazel_central_registry:
name: "Publish to Bazel Central Registry"
needs: package_source
uses: ./.github/workflows/publish.yaml
with:
tag_name: ${{ github.ref }}
secrets:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}

View File

@@ -4,7 +4,7 @@ Changelog
Future release Future release
------------ ------------
6.1.2 (2025-05-01) 6.1.4 (2025-05-01)
------------------ ------------------
### Build ### Build
@@ -15,7 +15,7 @@ Future release
**MODULE.bazel** **MODULE.bazel**
```bazel ```bazel
bazel_dep(name = "ftxui", version = "6.1.2") bazel_dep(name = "ftxui", version = "6.1.4")
``` ```
**BUILD.bazel** **BUILD.bazel**

View File

@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12)
project(ftxui project(ftxui
LANGUAGES CXX LANGUAGES CXX
VERSION 6.1.2 VERSION 6.1.4
DESCRIPTION "C++ Functional Terminal User Interface." DESCRIPTION "C++ Functional Terminal User Interface."
) )

View File

@@ -3,7 +3,7 @@
# the LICENSE file. # the LICENSE file.
# FTXUI Module. # FTXUI Module.
module(name = "ftxui", version = "6.1.2") module(name = "ftxui", version = "6.1.4")
# Build deps. # Build deps.
bazel_dep(name = "rules_cc", version = "0.1.1") bazel_dep(name = "rules_cc", version = "0.1.1")

View File

@@ -372,7 +372,7 @@ include(FetchContent)
FetchContent_Declare(ftxui FetchContent_Declare(ftxui
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
GIT_TAG v6.1.2 GIT_TAG v6.1.4
) )
FetchContent_GetProperties(ftxui) FetchContent_GetProperties(ftxui)