-
Notifications
You must be signed in to change notification settings - Fork 167
Add BCR workflow for Bazel Central Registry publishing #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not allowed to provide the token, this is a task for fast_float project maintainer, see this
|
@LeszekSwirski can you review this ? |
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