Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit a058b1a

Browse files
committed
#294 updated publish-instruction and fixes
1 parent 1ae2dd9 commit a058b1a

File tree

4 files changed

+34
-10
lines changed

4 files changed

+34
-10
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,48 @@
1-
name: KMP library publish production version
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
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

plugin/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

1211
buildscript {

plugin/gradle-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1212
dependencies {

widgets-build-logic/src/main/kotlin/publication-convention.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import java.util.Base64
66

77
plugins {
8-
id("javadoc-stub-convention")
98
id("org.gradle.maven-publish")
109
id("signing")
1110
}

0 commit comments

Comments
 (0)