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-29.0.0 ./ext/cargo-vendor/rb-sys-0.9.108/bin/release.sh
wasmtime-28.0.0 ./ext/cargo-vendor/rb-sys-0.9.108/bin/release.sh
wasmtime-27.0.0 ./ext/cargo-vendor/rb-sys-0.9.103/bin/release.sh
wasmtime-26.0.0 ./ext/cargo-vendor/rb-sys-0.9.102/bin/release.sh
wasmtime-25.0.2 ./ext/cargo-vendor/rb-sys-0.9.102/bin/release.sh
wasmtime-25.0.1 ./ext/cargo-vendor/rb-sys-0.9.102/bin/release.sh
wasmtime-25.0.0 ./ext/cargo-vendor/rb-sys-0.9.102/bin/release.sh
wasmtime-24.0.0 ./ext/cargo-vendor/rb-sys-0.9.102/bin/release.sh
wasmtime-23.0.2 ./ext/cargo-vendor/rb-sys-0.9.100/bin/release.sh
wasmtime-22.0.0 ./ext/cargo-vendor/rb-sys-0.9.100/bin/release.sh
wasmtime-21.0.1 ./ext/cargo-vendor/rb-sys-0.9.100/bin/release.sh
wasmtime-20.0.2 ./ext/cargo-vendor/rb-sys-0.9.97/bin/release.sh
wasmtime-20.0.0 ./ext/cargo-vendor/rb-sys-0.9.97/bin/release.sh
wasmtime-18.0.3 ./ext/cargo-vendor/rb-sys-0.9.89/bin/release.sh
wasmtime-17.0.1 ./ext/cargo-vendor/rb-sys-0.9.86/bin/release.sh
wasmtime-17.0.0 ./ext/cargo-vendor/rb-sys-0.9.86/bin/release.sh
wasmtime-16.0.0 ./ext/cargo-vendor/rb-sys-0.9.86/bin/release.sh
wasmtime-15.0.1 ./ext/cargo-vendor/rb-sys-0.9.86/bin/release.sh
wasmtime-15.0.0 ./ext/cargo-vendor/rb-sys-0.9.86/bin/release.sh
wasmtime-14.0.4 ./ext/cargo-vendor/rb-sys-0.9.82/bin/release.sh