Skip to content

Commit 22b0cf9

Browse files
committed
fix publish action
1 parent b136294 commit 22b0cf9

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,45 @@
1-
name: KMP library publish
1+
name: Create release
22

33
on:
4-
release:
5-
types: [ published ]
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version'
8+
default: '0.1.0'
9+
required: true
610

711
jobs:
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

0 commit comments

Comments
 (0)