| 1 | #!/bin/sh |
| 2 | |
| 3 | VERSION=$(grep "our\ \$VERSION\ =\ " check_rbl | sed "s/^[^']*'\([0-9.]*\)';/\1/") |
| 4 | |
| 5 | echo "Publishing release ${VERSION}" |
| 6 | |
| 7 | echo 'RELEASE_NOTES.md:' |
| 8 | echo '------------------------------------------------------------------------------' |
| 9 | |
| 10 | cat RELEASE_NOTES.md |
| 11 | |
| 12 | echo '------------------------------------------------------------------------------' |
| 13 | |
| 14 | echo 'Did you update the RELEASE_NOTES.md? ' |
| 15 | read -r ANSWER |
| 16 | if [ "${ANSWER}" = "y" ]; then |
| 17 | |
| 18 | perl Makefile.PL |
| 19 | make dist |
| 20 | gh release create "v${VERSION}" --title "check_rbl-${VERSION}" --notes-file RELEASE_NOTES.md "check_rbl-${VERSION}.tar.gz" |
| 21 | |
| 22 | fi |