Skip to content

Commit bbb5883

Browse files
committed
prepare for release without directly pushing to master
1 parent 6f156f4 commit bbb5883

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build Docker image
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
release:
7+
types: [created]
48

59
jobs:
610
ubuntu:

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Release
22

33
# TODO: run this only for the oracle/opengrok repository
44
on:
5-
push:
6-
tags:
7-
- '[1-9]+.[0-9]+.[0-9]+'
5+
release:
6+
types: [created]
87

98
jobs:
109
get_tag:

dev/release.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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

910
set -e
1011

@@ -43,8 +44,7 @@ if [[ $ver == $VERSION ]]; then
4344
fi
4445

4546
git pull --ff-only
47+
git switch -c "release_${VERSION}"
4648
./mvnw versions:set -DgenerateBackupPoms=false "-DnewVersion=$VERSION"
4749
git commit pom.xml '**/pom.xml' -m "$VERSION"
4850
git push
49-
git tag "$VERSION"
50-
git push origin tag "$VERSION"

0 commit comments

Comments
 (0)