From 13948eb58784d608d7c7c264e0f56e968d82f017 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 5 Jan 2021 21:10:35 +0900 Subject: [PATCH] Release 0.7.12 --- CHANGELOG.md | 11 ++++++++++- Cargo.toml | 6 +++--- ci/publish.sh | 46 ++++++++++++---------------------------------- core/Cargo.toml | 2 +- derive/Cargo.toml | 2 +- 5 files changed, 27 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2398fd1f..70161ab5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,16 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org). + + ## [Unreleased] +## [0.7.12] - 2021-01-05 + +- Exclude unneeded files from crates.io. + ## [0.7.11] - 2020-12-23 - [Add support for `tokio1::{AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead}`.](https://github.com/taiki-e/auto_enums/pull/122) @@ -333,7 +341,8 @@ This project adheres to [Semantic Versioning](https://semver.org). Initial release -[Unreleased]: https://github.com/taiki-e/auto_enums/compare/v0.7.11...HEAD +[Unreleased]: https://github.com/taiki-e/auto_enums/compare/v0.7.12...HEAD +[0.7.12]: https://github.com/taiki-e/auto_enums/compare/v0.7.11...v0.7.12 [0.7.11]: https://github.com/taiki-e/auto_enums/compare/v0.7.10...v0.7.11 [0.7.10]: https://github.com/taiki-e/auto_enums/compare/v0.7.9...v0.7.10 [0.7.9]: https://github.com/taiki-e/auto_enums/compare/v0.7.8...v0.7.9 diff --git a/Cargo.toml b/Cargo.toml index 9f58b386..763b176b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "auto_enums" -version = "0.7.11" +version = "0.7.12" authors = ["Taiki Endo "] edition = "2018" license = "Apache-2.0 OR MIT" @@ -82,8 +82,8 @@ trusted_len = ["auto_enums_derive/trusted_len"] # NB: futures*, tokio*, serde, and rayon are public dependencies. [dependencies] -auto_enums_core = { version = "=0.7.11", path = "core", default-features = false } -auto_enums_derive = { version = "=0.7.11", path = "derive", default-features = false } +auto_enums_core = { version = "=0.7.12", path = "core", default-features = false } +auto_enums_derive = { version = "=0.7.12", path = "derive", default-features = false } [dev-dependencies] rustversion = "1" diff --git a/ci/publish.sh b/ci/publish.sh index acf14645..5bc2bda5 100755 --- a/ci/publish.sh +++ b/ci/publish.sh @@ -3,40 +3,18 @@ set -euo pipefail IFS=$'\n\t' -# A list of paths to the crate to be published. -# It will be published in the order listed. -MEMBERS=( - "core" - "derive" - "." -) - -function error { - echo "error: $*" >&2 -} +cd "$(cd "$(dirname "${0}")" && pwd)"/.. -function retry() { - local -i max_retry=${1} - local -i count=0 - while ! eval "${2}"; do - ((count++)) - if ((count > max_retry)); then - error "${3}" - exit 1 - fi - echo "info: retry after $((10 * count)) seconds" - sleep $((10 * count)) - done -} +set -x -cd "$(cd "$(dirname "${0}")" && pwd)"/.. +( + cd core + cargo publish +) +( + cd derive + cargo publish +) -# publishing -for member in "${MEMBERS[@]}"; do - ( - cd "${member}" - pwd - echo "info: running 'cargo publish ${dryrun:-}'" - retry 2 "cargo publish ${dryrun:-}" "unable to publish ${member}" - ) -done +sleep 30 +cargo publish diff --git a/core/Cargo.toml b/core/Cargo.toml index 03518375..3236f72d 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "auto_enums_core" -version = "0.7.11" +version = "0.7.12" authors = ["Taiki Endo "] edition = "2018" license = "Apache-2.0 OR MIT" diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 35e995c5..120395d9 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "auto_enums_derive" -version = "0.7.11" +version = "0.7.12" authors = ["Taiki Endo "] edition = "2018" license = "Apache-2.0 OR MIT"