Skip to content

Commit

Permalink
Release 0.3.20
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed May 7, 2023
1 parent 798d5cc commit 323ea86
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

## [0.3.20] - 2023-05-07

The latest version of portable-atomic is 1.x. This release makes portable-atomic 0.3 is built on top of portable-atomic 1.x to make bug fixes and improvements such as [support for new targets](https://github.com/taiki-e/portable-atomic/pull/86) in 1.x available to the ecosystem that depends on older portable-atomic. portable-atomic 0.3 is still maintained passively, but upgrading to portable-atomic 1.x is recommended. (There are no breaking changes from 0.3, except that a deprecated no-op `outline-atomics` Cargo feature has been removed.) ([#99](https://github.com/taiki-e/portable-atomic/pull/99))

## [0.3.19] - 2022-12-25
Expand Down Expand Up @@ -231,7 +233,8 @@ The latest version of portable-atomic is 1.x. This release makes portable-atomic

Initial release

[Unreleased]: https://github.com/taiki-e/portable-atomic/compare/v0.3.19...HEAD
[Unreleased]: https://github.com/taiki-e/portable-atomic/compare/v0.3.20...HEAD
[0.3.20]: https://github.com/taiki-e/portable-atomic/compare/v0.3.19...v0.3.20
[0.3.19]: https://github.com/taiki-e/portable-atomic/compare/v0.3.18...v0.3.19
[0.3.18]: https://github.com/taiki-e/portable-atomic/compare/v0.3.17...v0.3.18
[0.3.17]: https://github.com/taiki-e/portable-atomic/compare/v0.3.16...v0.3.17
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "portable-atomic"
version = "0.3.19"
version = "0.3.20"
edition = "2018"
rust-version = "1.34"
license = "Apache-2.0 OR MIT"
Expand Down
40 changes: 21 additions & 19 deletions tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ trap 's=$?; echo >&2 "$0: Error on line "${LINENO}": ${BASH_COMMAND}"; exit ${s}
#
# Note: This script requires the following tools:
# - parse-changelog <https://github.com/taiki-e/parse-changelog>
# - cargo-workspaces <https://github.com/pksunkara/cargo-workspaces>

x() {
local cmd="$1"
shift
(
set -x
"${cmd}" "$@"
)
}
# x() {
# local cmd="$1"
# shift
# (
# set -x
# "${cmd}" "$@"
# )
# }
bail() {
echo >&2 "error: $*"
exit 1
Expand Down Expand Up @@ -120,15 +119,18 @@ for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
manifest_paths+=("${manifest_path}")
done

# Update version.
x cargo workspaces version --force '*' --no-git-commit --exact -y custom "${version}"
# cargo-workspaces is broken for our case as it downgrades portable-atomic 1.x.
exit 1

if [[ -n "${tags}" ]]; then
# Create a release commit.
x git add "${changelog}" "${manifest_paths[@]}"
x git commit -m "Release ${version}"
fi
# # Update version.
# x cargo workspaces version --force '*' --no-git-commit --exact -y custom "${version}"

# if [[ -n "${tags}" ]]; then
# # Create a release commit.
# x git add "${changelog}" "${manifest_paths[@]}"
# x git commit -m "Release ${version}"
# fi

x git tag "${tag}"
x git push origin "v0.3"
x git push origin --tags
# x git tag "${tag}"
# x git push origin "v0.3"
# x git push origin --tags

0 comments on commit 323ea86

Please sign in to comment.