Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .bcr/config.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"email": "andreash87@gmx.ch",
"github": "aherrmann",
"github_user_id": 732652
},
{
"name": "Corentin Kerisit",
"email": "corentin.kerisit@gmail.com",
"github": "cerisier",
"github_user_id": 1126594
}
],
"repository": ["github:hermeticbuild/rules_zig"],
Expand Down
42 changes: 26 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
tag:
description: "Tag to release (e.g. v1.2.3). Must already exist."
type: string
required: true

permissions:
attestations: write
contents: write
id-token: write

jobs:
tests:
Expand All @@ -19,19 +27,21 @@ jobs:

release:
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Prepare release notes and artifacts
run: .github/scripts/release_prep.sh > release_notes.txt
- name: Release
uses: softprops/action-gh-release@v3
with:
draft: true
prerelease: true
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
fail_on_unmatched_files: true
files: rules_zig-*.tar.gz
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.4.0
with:
release_files: rules_zig-*.tar.gz
prerelease: ${{ contains(inputs.tag || github.ref_name, '-') }}
tag_name: ${{ inputs.tag || github.ref_name }}

publish-to-bcr:
needs: [release]
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.2.0
with:
tag_name: ${{ inputs.tag || github.ref_name }}
registry_fork: hermeticbuild/bazel-central-registry
permissions:
attestations: write
contents: write
id-token: write
secrets:
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}
File renamed without changes.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ repos:
- id: renovate-config-validator
# Check validity of GitHub actions configuration
- repo: https://github.com/mpalmer/action-validator
rev: v0.6.0
rev: v0.9.0
hooks:
- id: action-validator
Loading