From 43ef2db4202b906c9ecb4f2308d6be642534901c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Mon, 1 Feb 2021 13:44:43 +0100 Subject: [PATCH] README / Gradle publish --- .github/workflows/gradle-publish.yml | 31 ++++++++++++++++++++++++++++ README.md | 4 ++++ gradlew | 0 3 files changed, 35 insertions(+) create mode 100644 .github/workflows/gradle-publish.yml mode change 100644 => 100755 gradlew diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml new file mode 100644 index 0000000..48fb61b --- /dev/null +++ b/.github/workflows/gradle-publish.yml @@ -0,0 +1,31 @@ +# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java#publishing-using-gradle + +name: Gradle Package + +on: + release: + types: [created] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 8 + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Build with Gradle + run: gradle build + + - name: Publish to Bintray + env: + bintray_user: ${{ secrets.BINTRAY_USER }} + bintray_key: ${{ secrets.BINTRAY_KEY }} + run: gradle bintrayUpload \ No newline at end of file diff --git a/README.md b/README.md index 2dd57fd..973829c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Kotlin JVM client for [PostgREST](https://postgrest.org/) +![Java CI with Gradle](https://img.shields.io/github/workflow/status/supabase/postgrest-kt/Java%20CI%20with%20Gradle?label=BUILD&style=for-the-badge) +![Gradle Package](https://img.shields.io/github/workflow/status/supabase/postgrest-kt/Gradle%20Package?label=PUBLISH&style=for-the-badge) +![Bintray](https://img.shields.io/bintray/v/supabase/supabase/postgrest-kt?style=for-the-badge) + ## Installation Maven diff --git a/gradlew b/gradlew old mode 100644 new mode 100755