Skip to content

Commit

Permalink
setup automated releases with release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Aug 5, 2024
1 parent 5048976 commit 462653f
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- develop

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Needed to pull full commit history for release version number inference
fetch-depth: 0

- uses: ./.github/actions/cleanup

- name: Install Protoc
uses: arduino/setup-protoc@v3

- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-python

- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4 changes: 2 additions & 2 deletions encodings/alp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "vortex-alp"
version = { workspace = true }
description = "Vortex ALP array"
version = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
authors = { workspace = true }
Expand All @@ -28,4 +28,4 @@ divan = { workspace = true }

[[bench]]
name = "alp_compress"
harness = false
harness = false
20 changes: 20 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[workspace]
# set the path of all the crates to the changelog to the root of the repository
changelog_path = "./CHANGELOG.md"

# This uses the single-changelog template from https://release-plz.ieni.dev/docs/extra/single-changelog
[changelog]
body = """
## `{{ package }}` - [{{ version | trim_start_matches(pat="v") }}]{%- if release_link -%}({{ release_link }}){% endif %} - {{ timestamp | date(format="%Y-%m-%d") }}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
{%- if commit.scope -%}
- *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{%- if commit.links %} ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}){% endif %}
{% else -%}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}
{% endif -%}
{% endfor -%}
{% endfor -%}
"""
2 changes: 1 addition & 1 deletion vortex-array/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "vortex-array"
version = { workspace = true }
description = "Vortex in memory columnar data format"
version = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
authors = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions vortex-buffer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "vortex-buffer"
description = "A byte buffer implementation for Vortex"
version.workspace = true
homepage.workspace = true
repository.workspace = true
Expand Down

0 comments on commit 462653f

Please sign in to comment.