Skip to content

Commit

Permalink
Fixed replacement of versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Luijken committed Jul 24, 2024
1 parent 19d6fa5 commit 70895f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cargo-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
useConfigFile: true
- name: "Overwrite version numbers"
run: |
awk 'NR==1,/version = "0.1.0"/{sub(/version = "0.1.0"/, "version = \"'$GitVersion_SemVer'\"")}1' stellar_rust_sdk_derive/Cargo.toml > stellar_rust_sdk_derive/Cargo.tmp && mv stellar_rust_sdk_derive/Cargo.tmp stellar_rust_sdk_derive/Cargo.toml
awk 'NR==1,/version = "0.1.0"/{sub(/version = "0.1.0"/, "version = \"'$GitVersion_SemVer'\"")}1' stellar_rust_sdk/Cargo.toml > stellar_rust_sdk/Cargo.tmp && mv stellar_rust_sdk/Cargo.tmp stellar_rust_sdk/Cargo.toml
awk '{gsub(/version = "0.1.0"/, "version = \"'$GitVersion_SemVer'\"")}1' stellar_rust_sdk/Cargo.toml > stellar_rust_sdk/Cargo.tmp && mv stellar_rust_sdk/Cargo.tmp stellar_rust_sdk/Cargo.toml
awk '{gsub(/version = "0.1.0"/, "version = \"'$GitVersion_SemVer'\"")}1' stellar_rust_sdk_derive/Cargo.toml > stellar_rust_sdk_derive/Cargo.tmp && mv stellar_rsut_sdk_derive/Cargo.tmp stelalr_rust_sdk_derive/Cargo.toml
- name: Publish to crates.io
run: |
cargo publish --token ${CRATES_TOKEN} --allow-dirty --manifest-path=stellar_rust_sdk_derive/Cargo.toml && \
Expand Down

0 comments on commit 70895f7

Please sign in to comment.