Skip to content

Commit 2a54657

Browse files
ci: automate stable releases with release-plz
2 parents 0dcc03e + 7cfdde2 commit 2a54657

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.github/workflows/release-plz.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release-plz
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
10+
release:
11+
uses: matter-labs/zksync-ci-common/.github/workflows/release-plz.yaml@v1
12+
secrets:
13+
gh_token: ${{ secrets.RELEASE_TOKEN }}
14+
cargo_registry_token: ${{ secrets.CRATES_IO_TOKEN }}
15+
slack_webhook: ${{ secrets.SLACK_WEBHOOK_RELEASES }}

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: release
33
on:
44
push:
55
tags:
6-
- "v*.*.*"
6+
- "*-zksync.*"
77
schedule:
88
- cron: "0 0 * * *"
99
workflow_dispatch:

release-plz.toml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[workspace]
2+
publish = false # Do not publish to crates.io for now
3+
dependencies_update = true # Whether to run `cargo update` in the release PR
4+
pr_name = "release: foundry-zksync {{version}}" # template for the PR name
5+
pr_labels = ["release", "automated"] # Set PR labels
6+
changelog_update = false # Disable individual changelog updates for all packages.
7+
git_tag_enable = false # Disable individual tags for all packages.
8+
git_release_enable = false # Disable individual releases for all packages.
9+
semver_check = false # Enable API breaking changes checks with cargo-semver-checks.
10+
11+
# Use one main package for a common tag for all workspace crates
12+
[[package]]
13+
name = "forge"
14+
git_tag_enable = true # Enable one common tag for all crates
15+
git_tag_name = "0.2.0-zksync.{{version}}" # Tag name

0 commit comments

Comments
 (0)