micro/tools/update-nightly-tag.sh

14 lines
326 B
Bash
Raw Permalink Normal View History

2020-07-06 00:12:06 +03:00
commitID=$(git rev-parse --short HEAD)
echo "Moving tag"
hub push origin :refs/tags/nightly
git tag -f nightly $commitID
hub push --tags
MESSAGE=$'Nightly build\n\nAutogenerated nightly build of micro'
echo "Creating new release"
hub release create nightly \
--prerelease \
--draft=false \
--message "$MESSAGE."