mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-05 23:24:35 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ba6716c6e1 | ||
![]() |
694fa6bf5c |
41
.github/workflows/publish.yaml
vendored
41
.github/workflows/publish.yaml
vendored
@@ -1,32 +1,41 @@
|
||||
name: "Publish to Bazel Central Registry"
|
||||
|
||||
on:
|
||||
# On manual trigger:
|
||||
# Manual kick-off (you type the tag)
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag_name:
|
||||
description: "Tag to publish"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
# Called from the release workflow:
|
||||
workflow_call:
|
||||
inputs:
|
||||
tag_name:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
PUBLISH_TOKEN:
|
||||
required: true
|
||||
# Fire as soon as the Release workflow completes
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Release
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
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:
|
||||
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
|
||||
permissions:
|
||||
attestations: write
|
||||
contents: write
|
||||
id-token: write
|
||||
|
||||
secrets:
|
||||
publish_token: ${{ secrets.PUBLISH_TOKEN }}
|
||||
|
14
.github/workflows/release.yaml
vendored
14
.github/workflows/release.yaml
vendored
@@ -13,6 +13,8 @@ permissions:
|
||||
# Needed to mint attestations
|
||||
id-token: write
|
||||
attestations: write
|
||||
# Needed to upload release assets
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -114,15 +116,3 @@ jobs:
|
||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||
asset_path: source.tar.gz.intoto.jsonl
|
||||
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 }}
|
||||
|
||||
|
@@ -4,7 +4,7 @@ Changelog
|
||||
Future release
|
||||
------------
|
||||
|
||||
6.1.3 (2025-05-01)
|
||||
6.1.4 (2025-05-01)
|
||||
------------------
|
||||
|
||||
### Build
|
||||
@@ -15,7 +15,7 @@ Future release
|
||||
|
||||
**MODULE.bazel**
|
||||
```bazel
|
||||
bazel_dep(name = "ftxui", version = "6.1.3")
|
||||
bazel_dep(name = "ftxui", version = "6.1.4")
|
||||
```
|
||||
|
||||
**BUILD.bazel**
|
||||
|
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12)
|
||||
|
||||
project(ftxui
|
||||
LANGUAGES CXX
|
||||
VERSION 6.1.3
|
||||
VERSION 6.1.4
|
||||
DESCRIPTION "C++ Functional Terminal User Interface."
|
||||
)
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
# the LICENSE file.
|
||||
|
||||
# FTXUI Module.
|
||||
module(name = "ftxui", version = "6.1.3")
|
||||
module(name = "ftxui", version = "6.1.4")
|
||||
|
||||
# Build deps.
|
||||
bazel_dep(name = "rules_cc", version = "0.1.1")
|
||||
|
Reference in New Issue
Block a user