File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' master'
7
+ - ' legacy_hooks'
8
+ tags :
9
+ - ' **'
10
+
11
+ env :
12
+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_USERNAME }}
13
+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_PASSWORD }}
14
+ ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_IN_MEMORY_KEY }}
15
+ ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.SIGNING_KEY_ID }}
16
+ ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
17
+
18
+ jobs :
19
+
20
+ publish-hooks :
21
+ runs-on : macos-latest
22
+ timeout-minutes : 60
23
+
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v4
27
+
28
+ - name : Validate Gradle Wrapper
29
+ uses : gradle/wrapper-validation-action@v3
30
+
31
+ - name : Set up JDK 21
32
+ uses : actions/setup-java@v4
33
+ with :
34
+ distribution : ' zulu'
35
+ java-version : 21
36
+
37
+ - name : Setup Gradle
38
+ uses : gradle/actions/setup-gradle@v4
39
+
40
+ - name : Cache Build Tooling
41
+ uses : actions/cache@v4
42
+ with :
43
+ path : |
44
+ ~/.gradle/caches
45
+ ~/.konan
46
+ key : ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
47
+
48
+ - name : Publish to MavenCentral
49
+ run : ./gradlew :hooks:publishAllPublicationsToMavenCentralRepository
You can’t perform that action at this time.
0 commit comments