File tree Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ name: Gradle Build
22
33on :
44 push :
5+ branches :
6+ - ' master'
57 pull_request :
8+ types : [opened, reopened, synchronize]
9+ workflow_dispatch :
610
711jobs :
812 build :
Original file line number Diff line number Diff line change 1+ on :
2+ workflow_dispatch :
3+
4+ push :
5+ branches : [ main ]
6+ paths : [ VERSION ]
7+
8+ jobs :
9+ release :
10+ if : " contains(github.event.head_commit.message, '[release]')"
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up JDK 17
17+ uses : actions/setup-java@v4
18+ with :
19+ java-version : ' 17'
20+ distribution : ' temurin'
21+
22+ - name : Publish Plugin
23+ env :
24+ GRADLE_PUBLISH_KEY : ${{ vars.GRADLE_PUBLISH_KEY }}
25+ GRADLE_PUBLISH_SECRET : ${{ secrets.GRADLE_PUBLISH_SECRET }}
26+ run : ./gradlew publishPlugins --no-daemon --stacktrace
27+
28+ - name : Create Git Tag
29+ run : |
30+ git config user.name "${GITHUB_ACTOR}"
31+ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
32+ VERSION=$(cat VERSION)
33+ git tag -a v$VERSION -m "Release v$VERSION"
34+ git push origin v$VERSION
Original file line number Diff line number Diff line change 1+ 0.0.1-alpha7
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66}
77
88group = ' io.nextflow'
9- version = ' 0.0.1-alpha6 '
9+ version = file( ' VERSION ' ) . text . trim()
1010
1111repositories {
1212 mavenCentral()
You can’t perform that action at this time.
0 commit comments