@@ -67,69 +67,6 @@ trap 'print_step' INT TERM EXIT
6767
6868# ## Steps
6969
70- echo " This script will walk you through making a ROBOT release ${VERSION} "
71- confirm " Ready?"
72-
73- step " Update git"
74- git fetch
75- git status | head -n2
76- confirm " Correct branch and up to date?"
77-
78- step " Check GitHub Actions"
79- curl -H " Accept: application/vnd.github.v3+json" https://api.github.com/repos/ontodev/robot/actions/runs \
80- | jq -e ' [.workflow_runs[]|select(.event=="push")][0].conclusion|test("success")'
81-
82- step " Update OBO context (curie map)"
83- ( cd robot-maven-plugin && mvn install )
84- mvn robot:UpdateContext -N
85-
86- step " Set the the version number for this release"
87- mvn versions:set -DnewVersion=" ${VERSION} "
88-
89- step " Check the JavaDocs"
90- mvn clean site
91-
92- step " Check the test suite"
93- mvn clean verify
94-
95- step " Updating CHANGELOG.md"
96- < CHANGELOG.md \
97- sed " /^## \[Unreleased\]/a## [${VERSION} ] - $( date ' +%Y-%m-%d' ) " \
98- | sed " /^## \[Unreleased\]/G " \
99- | sed " s/^\[Unreleased\]: /[${VERSION} ]: /" \
100- | sed " s/..HEAD$/..v${VERSION} /" \
101- | sed " /\[${VERSION} ]: /i[Unreleased]: https://github.com/ontodev/robot/compare/v${VERSION} ...HEAD" \
102- > CHANGELOG.new.md
103- mv CHANGELOG.new.md CHANGELOG.md
104-
105- step " Manually check CHANGELOG.md and obo_context.jsonld"
106- confirm " CHANGELOG.md and obo_context.jsonld good?"
107-
108- echo " Everything looks good!"
109-
110- # This extra step is required to avoid issue https://github.com/ontodev/robot/issues/411:
111- # Using the robot.jar downloaded from the GitHub release
112- # should give you the correct OWL API version in RDFXML file footers
113- # (NOT the ROBOT version), e.g.
114- # "Generated by the OWL API (version 4.5.29) https://github.com/owlcs/owlapi"
115- step " Make a copy of robot.jar for upload to GitHub"
116- cp bin/robot.jar robot.jar
117-
118- step " Review changes for release"
119- git diff
120- confirm " Commit and push?"
121- git commit --all --message " Bump version to ${VERSION} "
122- git push
123-
124- # ## Maven Central Release
125- #
126- # - documentation at <https://central.sonatype.org/publish/publish-portal-maven/>
127- # - make sure your have a username and password in `~/.m2/settings.xml`
128- # using the Access User Token from your profile on <https://central.sonatype.com/usertoken>
129- # - enter your GPG password, maybe with a dialog window
130- step " Release to Maven Central"
131- mvn clean deploy -P release
132-
13370step " Create draft GitHub release"
13471< CHANGELOG.md \
13572 sed -n " /^## \[${VERSION} \]/,/^## /p" \
0 commit comments