-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update release process with release-please
- Loading branch information
1 parent
3afd716
commit 17b8157
Showing
7 changed files
with
193 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"bump-minor-pre-major": true, | ||
"bump-patch-for-minor-pre-major": true, | ||
"release-type": "simple", | ||
"include-component-in-tag": false, | ||
"group-pull-request-title-pattern": "chore: release ${component} ${version}", | ||
"draft": true, | ||
"packages": { | ||
".": { | ||
"component": "anvil-zksync", | ||
"extra-files": [ | ||
{ | ||
"type": "generic", | ||
"path": "Cargo.toml" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "0.2.4" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Release-please | ||
|
||
# Give permissions to the release-please bot to open and update PRs | ||
# and commit to PRs the repository to update Cargo.lock | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
id-token: write | ||
attestations: write | ||
|
||
# Run the workflow on push to the main branch and manually | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
# Prepare the release PR with changelog updates and create github releases | ||
# Do not publish to crates.io or upgrade dependencies | ||
release-please: | ||
uses: matter-labs/zksync-ci-common/.github/workflows/release-please.yaml@v1 | ||
secrets: | ||
slack_webhook: ${{ secrets.SLACK_WEBHOOK }} | ||
gh_token: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
config: '.github/release-please/config.json' # Specify the path to the configuration file | ||
manifest: '.github/release-please/manifest.json' # Specify the path to the manifest file | ||
update-cargo-lock: true # Update Cargo.lock file | ||
publish-to-crates-io: false # Disable publishing to crates.io | ||
upgrade-dependencies: false # Do not upgrade workspace dependencies | ||
|
||
# Trigger workflow to publish binaries | ||
release-binaries: | ||
if: ${{ needs.release-please.outputs.releases_created == 'true' }} | ||
needs: release-please | ||
uses: ./.github/workflows/release.yml | ||
with: | ||
tag: ${{ needs.release-please.outputs.tag_name }} | ||
secrets: inherit | ||
|
||
# Trigger workflow to publish docker images | ||
release-docker: | ||
if: ${{ needs.release-please.outputs.releases_created == 'true' }} | ||
needs: release-please | ||
uses: ./.github/workflows/build-push-docker.yml | ||
with: | ||
tag: ${{ needs.release-please.outputs.tag_name }} | ||
secrets: inherit |
Oops, something went wrong.