Skip to content

Commit

Permalink
build: rm workaround for rust-lang/cargo#9507
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Feb 16, 2023
1 parent 32b264e commit d664f76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion .releaserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ plugins:
- - "@semantic-release/exec"
- verifyConditionsCmd: cargo bin semantic-release-rust verify-conditions
prepareCmd: cargo bin cargo-set-version --workspace ${nextRelease.version} && cargo update --package michie --package michie-macro
publishCmd: cargo bin makers publish_crates ${nextRelease.version}
publishCmd: cargo publish --package michie-macro && cargo publish --package michie
- - "@semantic-release/git"
- assets:
- CHANGELOG.md
Expand Down
22 changes: 0 additions & 22 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,3 @@ npm install --global \
semantic-release
'''

[tasks.publish_crates]
script = '''
#!/usr/bin/env bash
set -euxo pipefail
cargo publish --package michie-macro
attempts=0
while [ $attempts -lt 90 ]; do
latest_version=$( \
wget --quiet --output-document - 'https://raw.githubusercontent.com/rust-lang/crates.io-index/master/mi/ch/michie-macro' \
| tail --lines 1 \
| cargo bin jql '"vers"' \
)
if [ $latest_version == "\"$1\"" ]; then
cargo publish --package michie
exit 0
fi
sleep 10
attempts=$((attempts + 1))
done
exit 1
'''

0 comments on commit d664f76

Please sign in to comment.