6 Commits

Author SHA1 Message Date
ArthurSonzogni
784f53fd7e Remove attestion for Bazel 2025-05-01 11:30:12 +02:00
ArthurSonzogni
799d8a267e Fix release workflow 2025-05-01 10:52:54 +02:00
ArthurSonzogni
f4513702b0 Fix release workflow 2025-05-01 10:40:53 +02:00
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 15 additions and 52 deletions

View File

@@ -1,33 +1,24 @@
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
type: string
permissions:
contents: write
jobs:
jobs:
publish:
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.0.4
with:
tag_name: ${{ inputs.tag_name }}
tag_name: ${{ github.event.inputs.tag_name }}
registry_fork: ArthurSonzogni/bazel-central-registry
permissions:
attestations: write
contents: write
id-token: write
attest: false
secrets:
publish_token: ${{ secrets.PUBLISH_TOKEN }}

View File

@@ -13,6 +13,8 @@ permissions:
# Needed to mint attestations
id-token: write
attestations: write
# Needed to upload release assets
contents: write
jobs:
release:
@@ -90,39 +92,9 @@ jobs:
run: >
git archive --format=tar.gz -o source.tar.gz HEAD
- name: Generate source attestation
id: attest_source
uses: actions/attest-build-provenance@v2
with:
subject-path: source.tar.gz
- name: Write source.intoto.jsonl
run:
jq --compact-output < "${{ steps.attest_source.outputs.bundle-path }}" \
> source.tar.gz.intoto.jsonl
- name: "Upload source package"
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: source.tar.gz
overwrite: true
- name: "Upload source attestation"
uses: shogo82148/actions-upload-release-asset@v1
with:
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 }}

View File

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

View File

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

View File

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

View File

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