File tree Expand file tree Collapse file tree 1 file changed +32
-8
lines changed Expand file tree Collapse file tree 1 file changed +32
-8
lines changed Original file line number Diff line number Diff line change 1- name : KMP library publish
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
1015 env :
11- BINTRAY_USER : ${{ secrets.BINTRAY_USER }}
12- BINTRAY_KEY : ${{ secrets.BINTRAY_KEY }}
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 }}
1321
1422 steps :
1523 - uses : actions/checkout@v1
1624 - name : Set up JDK 1.8
1725 uses : actions/setup-java@v1
1826 with :
1927 java-version : 1.8
20- - name : Publish runtime
21- run : ./gradlew publishAllPublicationsToBintrayRepository
28+ - name : Publish library
29+ run : ./gradlew publish
30+ release :
31+ name : Create release
32+ needs : publish
33+ runs-on : ubuntu-latest
34+ steps :
35+ - name : Create Release
36+ id : create_release
37+ uses : actions/create-release@v1
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ with :
41+ commitish : ${{ github.ref }}
42+ tag_name : release/${{ github.event.inputs.version }}
43+ release_name : Release ${{ github.event.inputs.version }}
44+ body : " Will be filled later"
45+ draft : true
You can’t perform that action at this time.
0 commit comments