Skip to content

Commit

Permalink
Update publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Aug 20, 2020
1 parent c03933f commit 08c2403
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 38 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/bintray.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This is a basic workflow to help you get started with Actions

name: Publish

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types:
- created

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Gradle clean
run: ./gradlew clean
- name: Gradle build
run: ./gradlew build # if test's failed, don't publish
- name: Check keys
run: ./gradlew :kotlin-jvm-blocking-bridge:ensureBintrayAvailable
:kotlin-jvm-blocking-bridge-compiler:ensureBintrayAvailable
:kotlin-jvm-blocking-bridge-compiler-embeddable:ensureBintrayAvailable
:kotlin-jvm-blocking-bridge-gradle:ensureBintrayAvailable
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: :kotlin-jvm-blocking-bridge:publish
run: ./gradlew
:kotlin-jvm-blocking-bridge:publish
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: :kotlin-jvm-blocking-bridge-compiler:bintrayUpload
run: ./gradlew
:kotlin-jvm-blocking-bridge-compiler:bintrayUpload
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: :kotlin-jvm-blocking-bridge-compiler-embeddable:bintrayUpload
run: ./gradlew
:kotlin-jvm-blocking-bridge-compiler-embeddable:bintrayUpload
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: :kotlin-jvm-blocking-bridge-gradle:bintrayUpload
run: ./gradlew
:kotlin-jvm-blocking-bridge-gradle:bintrayUpload
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: Publish Gradle plugin
run: ./gradlew
:kotlin-jvm-blocking-bridge-gradle:publishPlugins
-Dgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Dgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
4 changes: 2 additions & 2 deletions README-chs.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fun test(a1: Int, a2: Any): String = runBlocking { test(a1, a2) }
`build.gradle``build.gradle.kts`
```kotlin
plugins {
id("net.mamoe.kotlin-jvm-blocking-bridge") version "1.0.2"
id("net.mamoe.kotlin-jvm-blocking-bridge") version "1.0.3"
}
```

Expand All @@ -143,7 +143,7 @@ pluginManagement {

本插件会自动添加如下的运行时依赖:
```kotlin
implementation("net.mamoe:kotlin-jvm-blocking-bridge:1.0.2")
implementation("net.mamoe:kotlin-jvm-blocking-bridge:1.0.3")
```
因此只需要安装插件, 而不需要添加依赖即可使用

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ The plugin is ready to use.
`build.gradle` or `build.gradle.kts`
```kotlin
plugins {
id("net.mamoe.kotlin-jvm-blocking-bridge") version "1.0.2"
id("net.mamoe.kotlin-jvm-blocking-bridge") version "1.0.3"
}
```

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object Versions {
const val project = "1.0.2"
const val project = "1.0.3"
const val idePlugin = "1.2.0"

const val kotlin = "1.4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.plugin.*

internal const val JBB_VERSION = "1.0.2"
internal const val JBB_VERSION = "1.0.3"

internal const val PLUGIN_ID = "net.mamoe.kotlin-jvm-blocking-bridge-compiler-embeddable"

Expand Down

0 comments on commit 08c2403

Please sign in to comment.