Skip to content
Open
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
62 changes: 62 additions & 0 deletions ReleaseHowTo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@




https://github.com/tzaeschke/phtree-cpp/releases/v1.6.2/download/v1.6.2.tar.gz


## Create Release


### GitHub

Create release.


### Archive

```bash
git archive --format=zip v1.6.2 > phtree-cpp-v1.6.2.zip
```

Upload to GitHub release.

Resulting link:
```
https://github.com/tzaeschke/phtree-cpp/releases/download/v1.6.2/phtree-cpp-v1.6.2.zip
```


### Bazel Central Repository

Documentation:
https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/README.md


#### Start

Checkout personal fork of bazel-central-registry.
Create branch phtree-cpp@1.6.2

#### After modifying any file

Recreate hashes for `source.json`
```shell
bazel run -- //tools:update_integrity phtree-cpp
```
This also accepts `--version` but defaults to latest version.

#### Validate

```shell
bazel run -- //tools:bcr_validation --check=phtree-cpp@1.6.2
```

#### Test locally

```bash
bazel run //tools:setup_presubmit_repos -- --module phtree-cpp@1.6.2
```

There is also a GitHub action for release automation:
https://github.com/bazel-contrib/publish-to-bcr
Loading