Add BCR workflow for Bazel Central Registry publishing#340
Add BCR workflow for Bazel Central Registry publishing#340mmorel-35 wants to merge 1 commit intofastfloat:mainfrom
Conversation
|
/cc @BYVoid |
|
As such, this will not work, of course. |
|
That's based on @BYVoid work in BCR. Can you provide some guidance to make this work ? |
2351ab7 to
eba6e93
Compare
This will not work because your configuration requires a secret token: |
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
| ### Creating a Personal Access Token | ||
|
|
||
| 1. **Navigate to GitHub Settings** | ||
| - Go to https://github.com/settings/tokens | ||
| - Or: Click your profile picture → Settings → Developer settings → Personal access tokens → Tokens (classic) | ||
|
|
||
| 2. **Generate New Token** | ||
| - Click "Generate new token (classic)" | ||
| - Give it a descriptive name, e.g., "BCR Publishing for fast_float" | ||
| - Set an appropriate expiration (recommended: 1 year with calendar reminder to renew) | ||
|
|
||
| 3. **Select Required Scopes** | ||
| - ✅ **`repo`** (Full control of private repositories) - Required for accessing repository details | ||
| - ✅ **`workflow`** (Update GitHub Action workflows) - Required for the publishing action | ||
|
|
||
| 4. **Generate and Copy** | ||
| - Click "Generate token" at the bottom | ||
| - **Important**: Copy the token immediately - you won't be able to see it again! | ||
|
|
||
| 5. **Add as Repository Secret** | ||
| - Go to the fast_float repository settings | ||
| - Navigate to: Settings → Secrets and variables → Actions | ||
| - Click "New repository secret" | ||
| - Name: `BCR_PUBLISH_TOKEN` | ||
| - Value: Paste the token you copied | ||
| - Click "Add secret" |
There was a problem hiding this comment.
I'm not allowed to provide the token, this is a task for fast_float project maintainer, see this
|
@LeszekSwirski can you review this ? |
|
Note that I am holding this because I don't know anything about the bazel central registry, so I cannot review. Help needed. |
|
I don't own the bcr repository. But let me see how the bcr token works. |
Description
Provide the workflow to publish the new versions of the Bazel module
Based on https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/fast_float
https://github.com/bazel-contrib/publish-to-bcr/tree/main?tab=readme-ov-file#setup