diff --git a/README.md b/README.md index ba5da40..309e174 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ In rare cases where a prerelease with a new unstable sierra version exists, and run the following command with the requested prerelease version: ```shell -curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh -s -- v2.0.0-rc.0 +curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh -s -- v2.8.0-rc.0 ``` > 📝 **Note** diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 0000000..c14c85e --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,7 @@ +# Instruction For Creating New `universal-sierra-compiler` Releases + +1. Create a new branch. +2. Run `./scripts/release.sh MAJOR.MINOR.PATCH`. +3. Create a pull request with title `Release MAJOR.MINOR.PATCH`. +4. Merge introduced changes to master branch. +5. Manually dispatch release workflow on Github from `master` branch. diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..5fc6024 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -euxo pipefail + +VERSION=$1 + +sed -i.bak "/\[package\]/,/version =/ s/version = \".*/version = \"${VERSION}\"/" Cargo.toml +rm Cargo.toml.bak 2> /dev/null + +sed -i ".bak" "s@install.sh | sh -s -- v.*@install.sh | sh -s -- v${VERSION}@" README.md +rm README.md.bak 2> /dev/null