Skip to content

Commit e392930

Browse files
committed
fix: configure cargo-dist for release-plz tag format
- Initialize cargo-dist properly with dist-workspace.toml - Set tag-namespace to 'redisctl' to match release-plz tags - Generated workflow now triggers on 'redisctl**[0-9]+.[0-9]+.[0-9]+*' - Removed old release.yml, using redisctl-release.yml instead - This will enable binary builds for tags like redisctl-v0.1.1
1 parent b2d32db commit e392930

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Note that the GitHub Release will be created with a generated
1414
# title/body based on your changelogs.
1515

16-
name: Release Binaries
16+
name: Release
1717
permissions:
1818
"contents": "write"
1919

@@ -42,8 +42,7 @@ on:
4242
pull_request:
4343
push:
4444
tags:
45-
# Matches tags like: v1.0.0, redisctl-v0.1.1, redis-cloud-v0.2.0, etc.
46-
- '**v[0-9]+.[0-9]+.[0-9]+*'
45+
- 'redisctl**[0-9]+.[0-9]+.[0-9]+*'
4746

4847
jobs:
4948
# Run 'dist plan' (or host) to determine what tasks we need to do

dist-workspace.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ members = ["cargo:."]
77
cargo-dist-version = "0.29.0"
88
# CI backends to support
99
ci = "github"
10+
# Tag pattern for releases (supports prefixed tags from release-plz)
11+
tag-namespace = "redisctl"
1012
# The installers to generate for each app
1113
installers = ["shell", "powershell"]
1214
# Target platforms to build apps for (Rust target-triple syntax)
@@ -15,13 +17,9 @@ targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-da
1517
install-path = "CARGO_HOME"
1618
# Whether to install an updater program
1719
install-updater = false
18-
# Build only the main unified binary by default
19-
# Users who want cloud-only or enterprise-only can build from source
20-
21-
# Create checksums for artifacts
20+
# Checksums to generate for each App
2221
checksum = "sha256"
23-
24-
# Include these files in archives
22+
# Extra static files to include in each App (path relative to this Cargo.toml's dir)
2523
include = ["LICENSE-MIT", "LICENSE-APACHE", "README.md"]
2624

2725
# Publish to Homebrew tap (can be configured later)

0 commit comments

Comments
 (0)