-
Notifications
You must be signed in to change notification settings - Fork 794
[bazel] Setup workflow to publish to BCR #1639
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "homepage": "https://emscripten.org", | ||
| "maintainers": [ | ||
| { | ||
| "name": "Sam Clegg", | ||
| "email": "sbc@chromium.org", | ||
| "github": "sbc100", | ||
| "github_user_id": 515813 | ||
| } | ||
| ], | ||
| "repository": [ | ||
| "github:emscripten-core/emsdk" | ||
| ], | ||
| "versions": [], | ||
| "yanked_versions": {} | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| matrix: | ||
| platform: | ||
| - debian13 | ||
| - ubuntu2204 | ||
| - windows | ||
| bazel: | ||
| - 7.x | ||
| - 8.x | ||
| - 9.x | ||
| tasks: | ||
| verify_targets: | ||
| name: Verify build targets | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_targets: | ||
| - '@emsdk//hello-world:hello-world-wasm' | ||
| - '@emsdk//hello-world:hello-world-wasm-simd' | ||
| bcr_test_module: | ||
| module_path: test_external | ||
| matrix: | ||
| platform: | ||
| - debian13 | ||
| - ubuntu2204 | ||
| - windows | ||
| bazel: | ||
| - 7.x | ||
| - 8.x | ||
| - 9.x | ||
| tasks: | ||
| run_test_module: | ||
| name: Run test module | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_targets: | ||
| - //:hello-world-wasm | ||
| - //long_command_line:long_command_line_wasm |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "integrity": "", | ||
| "strip_prefix": "{REPO}-{TAG}/bazel", | ||
| "url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # See https://github.com/bazel-contrib/publish-to-bcr#a-note-on-release-automation | ||
|
|
||
| fixedReleaser: | ||
| login: sbc100 | ||
| email: sbc@chromium.org | ||
|
|
||
| moduleRoots: | ||
| - bazel |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Publish to BCR | ||
| on: | ||
| push: | ||
| tags: | ||
| - '*' | ||
|
|
||
| jobs: | ||
| publish: | ||
| uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.0.0 | ||
| with: | ||
| tag_name: ${{ inputs.tag_name || github.ref_name }} | ||
| registry_fork: emscripten-core/bazel-central-registry | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sbc100 ,
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that because the workflow involves sending a PR to the upstream bazel-central-registry?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's my understanding yes |
||
| # see note on Attestation Support | ||
| attest: true | ||
| permissions: | ||
| contents: write | ||
| # Necessary if attest:true | ||
| id-token: write | ||
| # Necessary if attest:true | ||
| attestations: write | ||
| secrets: | ||
| # Necessary to push to the BCR fork, and to open a pull request against a registry | ||
| publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You'll need to create a dedicated token
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you tell me the exact steps I need to take here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Uh oh!
There was an error while loading. Please reload this page.