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 1
1
name : Build Docker image
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ pull_request :
6
+ release :
7
+ types : [created]
4
8
5
9
jobs :
6
10
ubuntu :
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ name: Release
2
2
3
3
# TODO: run this only for the oracle/opengrok repository
4
4
on :
5
- push :
6
- tags :
7
- - ' [1-9]+.[0-9]+.[0-9]+'
5
+ release :
6
+ types : [created]
8
7
9
8
jobs :
10
9
get_tag :
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
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,
6
5
# see https://github.com/oracle/opengrok/wiki/Release-process
7
6
#
7
+ # Assumes working Maven + Git.
8
+ #
8
9
9
10
set -e
10
11
@@ -43,8 +44,7 @@ if [[ $ver == $VERSION ]]; then
43
44
fi
44
45
45
46
git pull --ff-only
47
+ git switch -c " release_${VERSION} "
46
48
./mvnw versions:set -DgenerateBackupPoms=false " -DnewVersion=$VERSION "
47
49
git commit pom.xml ' **/pom.xml' -m " $VERSION "
48
50
git push
49
- git tag " $VERSION "
50
- git push origin tag " $VERSION "
You can’t perform that action at this time.
0 commit comments