Sha256: 13e6ec69a0f03cbc9886802ddd6c41837e6211808bd2cb9d9b65dc5bfd0b5502

Contents?: true

Size: 586 Bytes

Versions: 38

Compression:

Stored size: 586 Bytes

Contents

#!/bin/bash

set -euo pipefail
IFS=$'\n\t'

if ! git diff-index --quiet HEAD --; then
  echo "There are git changes, cannot release"
  exit 1
fi


read -rp "What version would you like to release? (current $(grep version Cargo.toml)): " version
read -rp "Are you sure you want to bump to v$version? <y/N> " prompt

if [[ $prompt =~ [yY](es)* ]]; then
  sed -i '' "s/^version = .*/version = \"$version\"/g" Cargo.toml
  cargo build
  git add Cargo.lock Cargo.toml ../../Cargo.lock
  git commit -am "Bump to v$version"
  git tag "v$version"
  git push --atomic origin main "v$version"
fi

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-14.0.3 ./ext/cargo-vendor/rb-sys-0.9.82/bin/release.sh
wasmtime-14.0.1 ./ext/cargo-vendor/rb-sys-0.9.82/bin/release.sh
wasmtime-14.0.0 ./ext/cargo-vendor/rb-sys-0.9.82/bin/release.sh
wasmtime-13.0.0 ./ext/cargo-vendor/rb-sys-0.9.81/bin/release.sh
wasmtime-12.0.1 ./ext/cargo-vendor/rb-sys-0.9.81/bin/release.sh
wasmtime-12.0.0 ./ext/cargo-vendor/rb-sys-0.9.81/bin/release.sh
wasmtime-11.0.0 ./ext/cargo-vendor/rb-sys-0.9.81/bin/release.sh
wasmtime-10.0.1 ./ext/cargo-vendor/rb-sys-0.9.81/bin/release.sh
wasmtime-10.0.0 ./ext/cargo-vendor/rb-sys-0.9.81/bin/release.sh
wasmtime-9.0.4 ./ext/cargo-vendor/rb-sys-0.9.81/bin/release.sh
wasmtime-9.0.1 ./ext/cargo-vendor/rb-sys-0.9.78/bin/release.sh
wasmtime-8.0.0 ./ext/cargo-vendor/rb-sys-0.9.72/bin/release.sh
wasmtime-7.0.0 ./ext/cargo-vendor/rb-sys-0.9.70/bin/release.sh
wasmtime-6.0.1 ./ext/cargo-vendor/rb-sys-0.9.65/bin/release.sh
wasmtime-6.0.0 ./ext/cargo-vendor/rb-sys-0.9.65/bin/release.sh
wasmtime-5.0.0 ./ext/cargo-vendor/rb-sys-0.9.57/bin/release.sh
wasmtime-0.4.1 ./ext/cargo-vendor/rb-sys-0.9.53/bin/release.sh
wasmtime-0.4.0 ./ext/cargo-vendor/rb-sys-0.9.52/bin/release.sh