This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +34
-10
lines changed
widgets-build-logic/src/main/kotlin Expand file tree Collapse file tree 4 files changed +34
-10
lines changed Original file line number Diff line number Diff line change 1- name : KMP library publish production version
1+ name : Create release
22
33on :
4- release :
5- types : [published]
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Version'
8+ default : ' 0.1.0'
9+ required : true
610
711jobs :
8- build :
12+ publish :
13+ name : Publish library at mavenCentral
914 runs-on : macOS-latest
15+ env :
16+ OSSRH_USER : ${{ secrets.OSSRH_USER }}
17+ OSSRH_KEY : ${{ secrets.OSSRH_KEY }}
18+ SIGNING_KEY_ID : ${{ secrets.SIGNING_KEYID }}
19+ SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
20+ SIGNING_KEY : ${{ secrets.GPG_KEY_CONTENTS }}
1021
1122 steps :
1223 - uses : actions/checkout@v1
1324 - name : Set up JDK 11
1425 uses : actions/setup-java@v1
1526 with :
1627 java-version : 11
17- - name : Cocoapods install
18- run : (cd sample/ios-app && pod install)
1928 - name : Publish plugin
20- run : ./gradlew -p plugin publishMavenJavaPublicationToOSSRHRepository
29+ run : ./gradlew -p widgets-generator publishMavenJavaPublicationToOSSRHRepository
2130 - name : Publish library
2231 run : ./gradlew publish
32+
33+ release :
34+ name : Create release
35+ needs : publish
36+ runs-on : ubuntu-latest
37+ steps :
38+ - name : Create Release
39+ id : create_release
40+ uses : actions/create-release@v1
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ with :
44+ commitish : ${{ github.ref }}
45+ tag_name : release/${{ github.event.inputs.version }}
46+ release_name : ${{ github.event.inputs.version }}
47+ body : " Will be filled later"
48+ draft : true
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
66 id(" org.jetbrains.kotlin.jvm" ) version (" 1.5.20" )
77 id(" detekt-convention" )
88 id(" publication-convention" )
9- id(" com.github.gmazzo.buildconfig" ) version (" 3.0.2" )
109}
1110
1211buildscript {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66 id(" org.jetbrains.kotlin.jvm" )
77 id(" org.gradle.maven-publish" )
88 id(" kotlin-kapt" )
9- id(" com.github.gmazzo.buildconfig" )
9+ id(" com.github.gmazzo.buildconfig" ) version ( " 3.0.2 " )
1010}
1111
1212dependencies {
Original file line number Diff line number Diff line change 55import java.util.Base64
66
77plugins {
8- id(" javadoc-stub-convention" )
98 id(" org.gradle.maven-publish" )
109 id(" signing" )
1110}
You can’t perform that action at this time.
0 commit comments