-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add v0.49 changelog * Update cargo.toml dependency versions * Use infallible conversion method where appropriate * Bump ibc-derive version * Update ibc-derive deps version * Update RELEASES.md doc * Update release workflow to use `cargo release` * Remove release.sh script in favor of `cargo release` command * CI: add job for release-check * fix: revise if conditions * fix: release.yaml if condition * rewrite release.yaml + apply linter on CHANGELOG.md * Incorporate some PR feedback --------- Co-authored-by: Farhad Shabani <[email protected]>
- Loading branch information
1 parent
2be0344
commit 211d1fe
Showing
21 changed files
with
165 additions
and
157 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,13 @@ | ||
This release continues the trend of further decoupling dependencies between the different `ibc-rs` | ||
sub-crates and modules. | ||
|
||
In particular, the `prost` dependency is now only imported in the `ibc-primitives` | ||
crate; note that error variants originating from `prost` have largely been removed, which is a breaking | ||
change. The `bytes` dependency was also removed. Additionally, `CommitmentProofBytes` can now be | ||
accessed without explicit ownership of the object which the proof is being queried for. | ||
|
||
Some other notable improvements include making the CosmWasm check more rigorous, streamlining the | ||
`Msg` trait and renaming it to `ToProto`, as well as implementing custom JSON and Borsh `ChainId` | ||
deserialization. | ||
|
||
There are no consensus-breaking changes. |
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 |
---|---|---|
@@ -1,27 +1,65 @@ | ||
# Attempts to perform a release when a particular tag is pushed. This uses the | ||
# `./scripts/release.sh`, and assumes that the CRATES_TOKEN secret has been set | ||
# and contains an API token with which we can publish our crates to crates.io. | ||
# Attempts to perform a release when a particular tag is pushed. This job uses | ||
# the `cargo release` command and assumes that the `CRATES_TOKEN`secret has | ||
# been set and contains an API token with which we can publish our crates to | ||
# crates.io. | ||
# | ||
# The `ibc-derive` publishing process is managed manually since it's not | ||
# consistently published with every release. | ||
# | ||
# If release operation fails partway through due to a temporary error (e.g. the | ||
# crate being published depends on the crate published just prior, but the prior | ||
# crate isn't yet available via crates.io), one can simply rerun this workflow. | ||
# The release.sh script aims to be an idempotent operation, skipping the | ||
# publishing of crates that have already been published. | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- "release/*" | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v0.26.0, v1.0.0 | ||
- "v[0-9]+.[0-9]+.[0-9]+-pre.[0-9]+" # e.g. v0.26.0-pre.1 | ||
|
||
jobs: | ||
release: | ||
publish-check: | ||
if: github.ref_type != 'tag' | ||
name: Check publish to crates.io (dry run) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Cache cargo dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Install cargo-release | ||
run: cargo install cargo-release | ||
- name: Publish crates (dry run) | ||
run: cargo release --workspace --no-push --no-tag --no-publish --exclude ibc-derive | ||
env: | ||
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} | ||
|
||
publish: | ||
if: github.ref_type == 'tag' | ||
name: Publish to crates.io | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Cache cargo dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Install cargo-release | ||
run: cargo install cargo-release | ||
- name: Publish crates | ||
run: ./scripts/release.sh | ||
run: cargo release --workspace --no-push --no-tag --exclude ibc-derive --execute | ||
env: | ||
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} | ||
|
||
gh-release: | ||
if: github.ref_type == 'tag' | ||
name: Create GitHub release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: taiki-e/create-gh-release-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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
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
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 was deleted.
Oops, something went wrong.