File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 11name : Build Docker image
22
3- on : [push, pull_request]
3+ on :
4+ push :
5+ pull_request :
6+ release :
7+ types : [created]
48
59jobs :
610 ubuntu :
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ name: Release
22
33# TODO: run this only for the oracle/opengrok repository
44on :
5- push :
6- tags :
7- - ' [1-9]+.[0-9]+.[0-9]+'
5+ release :
6+ types : [created]
87
98jobs :
109 get_tag :
Original file line number Diff line number Diff line change 11#! /bin/bash
22#
3- # Trigger new release creation on Github.
4- # Assumes working Maven + Git.
5- #
3+ # Query current release or trigger new release creation on Github.
4+ # For the latter, it merely kick-starts the creation of new Release on Github,
65# see https://github.com/oracle/opengrok/wiki/Release-process
76#
7+ # Assumes working Maven + Git.
8+ #
89
910set -e
1011
@@ -43,8 +44,7 @@ if [[ $ver == $VERSION ]]; then
4344fi
4445
4546git pull --ff-only
47+ git switch -c " release_${VERSION} "
4648./mvnw versions:set -DgenerateBackupPoms=false " -DnewVersion=$VERSION "
4749git commit pom.xml ' **/pom.xml' -m " $VERSION "
4850git push
49- git tag " $VERSION "
50- git push origin tag " $VERSION "
You can’t perform that action at this time.
0 commit comments