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