Skip to content

Commit

Permalink
ci: automate stable releases with release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov authored Dec 4, 2024
2 parents 0dcc03e + 7cfdde2 commit 2a54657
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/release-plz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release-plz

on:
push:
branches:
- main

jobs:

release:
uses: matter-labs/zksync-ci-common/.github/workflows/release-plz.yaml@v1
secrets:
gh_token: ${{ secrets.RELEASE_TOKEN }}
cargo_registry_token: ${{ secrets.CRATES_IO_TOKEN }}
slack_webhook: ${{ secrets.SLACK_WEBHOOK_RELEASES }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- "v*.*.*"
- "*-zksync.*"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
Expand Down
15 changes: 15 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[workspace]
publish = false # Do not publish to crates.io for now
dependencies_update = true # Whether to run `cargo update` in the release PR
pr_name = "release: foundry-zksync {{version}}" # template for the PR name
pr_labels = ["release", "automated"] # Set PR labels
changelog_update = false # Disable individual changelog updates for all packages.
git_tag_enable = false # Disable individual tags for all packages.
git_release_enable = false # Disable individual releases for all packages.
semver_check = false # Enable API breaking changes checks with cargo-semver-checks.

# Use one main package for a common tag for all workspace crates
[[package]]
name = "forge"
git_tag_enable = true # Enable one common tag for all crates
git_tag_name = "0.2.0-zksync.{{version}}" # Tag name

0 comments on commit 2a54657

Please sign in to comment.