Skip to content

Commit

Permalink
ci: unified crates.io release workflow using release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov committed Dec 3, 2024
1 parent fb09cb3 commit 2843da6
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 175 deletions.
12 changes: 0 additions & 12 deletions .github/release-please/config.json

This file was deleted.

3 changes: 0 additions & 3 deletions .github/release-please/manifest.json

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/release-please-prepare-branch.yml

This file was deleted.

90 changes: 0 additions & 90 deletions .github/workflows/release-please.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release

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 }}
24 changes: 24 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[workspace]
dependencies_update = true # Wether to run `cargo update` in the release PR
pr_name = "chore(main): release {{version}}" # template for the PR name
pr_labels = ["release", "crates.io"] # Set PR labels
changelog_path = "./CHANGELOG.md" # Set common changelog path for all crates
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 = true # Enable API breaking changes checks with cargo-semver-checks.
publish_timeout = "10m" # Set a timeout for `cargo publish`.

# Use one package to combine changelog updates and tags for all workspace
[[package]]
name = "circuit_definitions"
git_release_enable = true # Enable GitHub releases
git_tag_enable = true # Enable one common tag for all crates
git_tag_name = "v{{version}}" # Common tag name for the workspace
git_release_name = "v{{version}}" # Common GitHub release name
changelog_update = true # Enable changelog updates combining all crates
changelog_include = [
"circuit_encodings", "circuit_sequencer_api", "zksync_kzg",
"zkevm-assembly", "zk_evm", "zk_evm_abstractions",
"zkevm_circuits", "zkevm_opcode_defs", "zkevm_test_harness"
]

0 comments on commit 2843da6

Please sign in to comment.