Skip to content

Commit 031b575

Browse files
authored
Merge pull request #664 from hermeticbuild/bcr
chore: add maintainer and update BCR config
2 parents 2fbc8cf + 1cbbda2 commit 031b575

5 files changed

Lines changed: 33 additions & 23 deletions

File tree

.bcr/config.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.bcr/metadata.template.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
"email": "andreash87@gmx.ch",
77
"github": "aherrmann",
88
"github_user_id": 732652
9+
},
10+
{
11+
"name": "Corentin Kerisit",
12+
"email": "corentin.kerisit@gmail.com",
13+
"github": "cerisier",
14+
"github_user_id": 1126594
915
}
1016
],
1117
"repository": ["github:hermeticbuild/rules_zig"],

.github/workflows/release.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@ on:
77
push:
88
tags:
99
- "v*.*.*"
10+
workflow_dispatch:
11+
inputs:
12+
tag:
13+
description: "Tag to release (e.g. v1.2.3). Must already exist."
14+
type: string
15+
required: true
1016

1117
permissions:
18+
attestations: write
1219
contents: write
20+
id-token: write
1321

1422
jobs:
1523
tests:
@@ -19,19 +27,21 @@ jobs:
1927

2028
release:
2129
needs: [tests]
22-
runs-on: ubuntu-latest
23-
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v6
26-
- name: Prepare release notes and artifacts
27-
run: .github/scripts/release_prep.sh > release_notes.txt
28-
- name: Release
29-
uses: softprops/action-gh-release@v3
30-
with:
31-
draft: true
32-
prerelease: true
33-
# Use GH feature to populate the changelog automatically
34-
generate_release_notes: true
35-
body_path: release_notes.txt
36-
fail_on_unmatched_files: true
37-
files: rules_zig-*.tar.gz
30+
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.4.0
31+
with:
32+
release_files: rules_zig-*.tar.gz
33+
prerelease: ${{ contains(inputs.tag || github.ref_name, '-') }}
34+
tag_name: ${{ inputs.tag || github.ref_name }}
35+
36+
publish-to-bcr:
37+
needs: [release]
38+
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.2.0
39+
with:
40+
tag_name: ${{ inputs.tag || github.ref_name }}
41+
registry_fork: hermeticbuild/bazel-central-registry
42+
permissions:
43+
attestations: write
44+
contents: write
45+
id-token: write
46+
secrets:
47+
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ repos:
3636
- id: renovate-config-validator
3737
# Check validity of GitHub actions configuration
3838
- repo: https://github.com/mpalmer/action-validator
39-
rev: v0.6.0
39+
rev: v0.9.0
4040
hooks:
4141
- id: action-validator

0 commit comments

Comments
 (0)