diff --git a/docs/target_development/releasing_target_firmware.md b/docs/target_development/releasing_target_firmware.md index 380c88ac..567ac7e7 100644 --- a/docs/target_development/releasing_target_firmware.md +++ b/docs/target_development/releasing_target_firmware.md @@ -20,15 +20,22 @@ string. ```bash cd $FARMBOT_OS_ROOT_DIRECTORY git checkout staging -git fetch --all && git reset --hard origin/staging + +# Ensure you don't accidentally publish local changes +# that have not gone through CI: +git fetch --all +git reset --hard origin/staging + # update the CHANGELOG, but DO NOT put the `rc` # on the semver string. $EDITOR CHANGELOG.md -echo 10.5.6-rc30 > VERSION -git add CHANGELOG.md VERSION -git commit -m "Release v10.5.6-rc30" -git tag v$(cat VERSION) -git push origin staging v$(cat VERSION) + +echo 1.2.3-rc4 > VERSION + +git add -A +git commit -am "Release v10.5.6-rc30" +git tag v1.2.3-rc4 +git push origin v1.2.3-rc4 ``` or call the helper script: