File tree 5 files changed +85
-3
lines changed
5 files changed +85
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Continuous Integration
2
2
3
3
on :
4
+ workflow_call :
4
5
workflow_dispatch :
5
6
push :
6
7
branches :
11
12
- master
12
13
13
14
concurrency :
14
- group : ${{ github.workflow }}-${{ github.ref }}
15
+ group : ci- ${{ github.workflow }}-${{ github.ref }}
15
16
cancel-in-progress : true
16
17
17
18
env :
Original file line number Diff line number Diff line change 1
1
name : " CodeQL"
2
2
3
3
on :
4
+ workflow_call :
4
5
push :
5
6
branches :
6
7
- master
10
11
- master
11
12
12
13
concurrency :
13
- group : ${{ github.workflow }}-${{ github.ref }}
14
+ group : codeql- ${{ github.workflow }}-${{ github.ref }}
14
15
cancel-in-progress : true
15
16
16
17
env :
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ tags :
7
+ - ' *.*.*'
8
+
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress : false
12
+
13
+ env :
14
+ GRADLE_OPTS : ' -Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail'
15
+
16
+ jobs :
17
+ ci :
18
+ uses : ./.github/workflows/ci.yml
19
+
20
+ codeql :
21
+ uses : ./.github/workflows/codeql.yml
22
+
23
+ slow :
24
+ uses : ./.github/workflows/slow.yml
25
+
26
+ release :
27
+ name : Release java artifacts
28
+ permissions :
29
+ contents : write
30
+ packages : write
31
+ needs : [ ci , codeql, slow ]
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : checkout
35
+ uses : actions/checkout@v4
36
+ with :
37
+ ref : ${{ github.ref }}
38
+ - name : Create Release
39
+ uses : actions/create-release@v1
40
+ env :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ with :
43
+ tag_name : ${{ github.ref }}
44
+ release_name : Release ${{ github.ref }}
45
+ draft : true
46
+ - name : Setup java
47
+ uses : actions/setup-java@v4
48
+ with :
49
+ distribution : ' zulu'
50
+ java-version : 8
51
+ - name : Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
52
+ run : |
53
+ java -Xinternalversion
54
+ echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
55
+ echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
56
+ - name : Publish with Gradle
57
+ run : ./gradlew publish
58
+ env :
59
+ ORG_GRADLE_PROJECT_ossrhUsername : ${{ secrets.ossrhUsername }}
60
+ ORG_GRADLE_PROJECT_ossrhPassword : ${{ secrets.ossrhPassword }}
61
+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.signingKey }}
62
+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.signingPassword }}
Original file line number Diff line number Diff line change 1
1
name : Slow checks
2
2
3
3
on :
4
+ workflow_call :
4
5
workflow_dispatch :
5
6
branches :
6
7
- ' **'
7
8
schedule :
8
9
- cron : ' 0 12 * * *'
9
10
10
11
concurrency :
11
- group : ${{ github.workflow }}-${{ github.ref }}
12
+ group : slow- ${{ github.workflow }}-${{ github.ref }}
12
13
cancel-in-progress : true
13
14
14
15
env :
Original file line number Diff line number Diff line change 79
79
if (! project. hasProperty(' ossrhPassword' )) {
80
80
ossrhPassword = ' '
81
81
}
82
+
83
+ if (! project. hasProperty(' signingKey' )) {
84
+ signingKey = null
85
+ }
86
+
87
+ if (! project. hasProperty(' signingPassword' )) {
88
+ signingPassword = null
89
+ }
82
90
}
83
91
84
92
def projectPom = {
@@ -404,6 +412,9 @@ project(':sbe-tool') {
404
412
}
405
413
406
414
signing {
415
+ if (signingKey != null ) {
416
+ useInMemoryPgpKeys(signingKey, signingPassword)
417
+ }
407
418
sign publishing. publications. sbe
408
419
}
409
420
}
@@ -471,6 +482,9 @@ project(':sbe-all') {
471
482
}
472
483
473
484
signing {
485
+ if (signingKey != null ) {
486
+ useInMemoryPgpKeys(signingKey, signingPassword)
487
+ }
474
488
sign publishing. publications. sbeAll
475
489
}
476
490
}
@@ -584,6 +598,9 @@ project(':sbe-samples') {
584
598
}
585
599
586
600
signing {
601
+ if (signingKey != null ) {
602
+ useInMemoryPgpKeys(signingKey, signingPassword)
603
+ }
587
604
sign publishing. publications. sbeSamples
588
605
}
589
606
}
You can’t perform that action at this time.
0 commit comments