From 44cc169dc2b76229b3e8caa14a9f7ef49c8165ec Mon Sep 17 00:00:00 2001 From: Gautam Korlam Date: Sat, 11 Nov 2023 10:33:24 -0800 Subject: [PATCH] Add configuration to mirror github releases to bazel central registry --- .bcr/README.md | 9 +++++++++ .bcr/config.yml | 3 +++ .bcr/metadata.template.json | 18 ++++++++++++++++++ .bcr/presubmit.yml | 1 + .bcr/source.template.json | 5 +++++ 5 files changed, 36 insertions(+) create mode 100644 .bcr/README.md create mode 100644 .bcr/config.yml create mode 100644 .bcr/metadata.template.json create mode 120000 .bcr/presubmit.yml create mode 100644 .bcr/source.template.json diff --git a/.bcr/README.md b/.bcr/README.md new file mode 100644 index 0000000000..44ae7fe555 --- /dev/null +++ b/.bcr/README.md @@ -0,0 +1,9 @@ +# Bazel Central Registry + +When the ruleset is released, we want it to be published to the +Bazel Central Registry automatically: + + +This folder contains configuration files to automate the publish step. +See +for authoritative documentation about these files. diff --git a/.bcr/config.yml b/.bcr/config.yml new file mode 100644 index 0000000000..d52fa46d57 --- /dev/null +++ b/.bcr/config.yml @@ -0,0 +1,3 @@ +fixedReleaser: + login: UebelAndre + email: 26427366+UebelAndre@users.noreply.github.com diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000000..15ce8c4730 --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,18 @@ +{ + "homepage": "https://github.com/bazelbuild/rules_rust", + "maintainers": [ + { + "email": "26427366+UebelAndre@users.noreply.github.com", + "github": "UebelAndre", + "name": "UebelAndre" + }, + { + "email": "1131704+illicitonion@users.noreply.github.com", + "github": "illicitonion", + "name": "Daniel Wagner-Hall" + } + ], + "repository": ["github:bazelbuild/rules_rust"], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 120000 index 0000000000..f82d238934 --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1 @@ +../.bazelci/presubmit.yml \ No newline at end of file diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000000..6767b685d9 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "**leave this alone**", + "strip_prefix": "", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.tar.gz" +}