Skip to content

Commit

Permalink
Updated version for release (#100)
Browse files Browse the repository at this point in the history
* Updated version for release

* Added duration changes to the README

* Updated the release script to add a -d option
  • Loading branch information
tkmcmaster authored Oct 3, 2022
1 parent d200bfa commit b0dd534
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pewpew"
version = "0.5.10"
version = "0.5.11"
edition = "2018"
default-run = "pewpew"
publish = false
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Pewpew is an HTTP load test tool designed for ease of use and high performance.
### v0.5.11
Changes:
- Added armv7 (Raspberry Pi) and aarch64 (AWS Graviton) builds
- Due to standard library changes to Durations, [conversions from float to Durations are now rounded rather than truncated](https://github.com/rust-lang/rust/pull/96051)

Bug fixes:
- Updated dependencies

### v0.5.10
Changes:
Expand Down
19 changes: 16 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
set -x
set +x

printusage() {
if ! [[ -z "$1" ]] ; then
Expand All @@ -11,16 +11,29 @@ printusage() {
exit 1
}

if [ "$1" == "-d" ] || [ "$1" == "delete" ] ; then
shift;
export DELETE="true"
fi

if [[ -z "$1" ]] ; then
printusage Must provide a tag version
fi

if [[ ! -z "$DELETE" ]] ; then
echo "git tag -d \"$1\""
git tag -d "$1"
echo "git push --delete origin \"$1\""
git push --delete origin "$1"
fi

echo "git tag -a \"$1\" -m \"$1
echo git tag -d "$1"
echo git push --delete origin "$1"
${@:2}\""

git tag -a "$1" -m "$1
${@:2}"

echo "git push origin \"$1\""
git push origin "$1"

0 comments on commit b0dd534

Please sign in to comment.