From c0db187643def748d46de5b0feddb352e48a4839 Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Thu, 14 May 2020 15:36:14 +0200 Subject: [PATCH] Bump to OPENRNDR 0.3.42, Fix publish to bintray --- .../release-candidate-to-bintray.yml | 29 +++++++++++++++++++ .github/workflows/release-to-bintray.yml | 3 +- build.gradle | 2 +- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release-candidate-to-bintray.yml diff --git a/.github/workflows/release-candidate-to-bintray.yml b/.github/workflows/release-candidate-to-bintray.yml new file mode 100644 index 000000000..d9d723b90 --- /dev/null +++ b/.github/workflows/release-candidate-to-bintray.yml @@ -0,0 +1,29 @@ +name: Release to Bintray +on: + push: + tags: + - v[0-9].[0-9]+.[0-9]+-rc.[0-9]+ +jobs: + build: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} + - uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Build and publish to local maven + run: ./gradlew -Prelease.useLastTag=true candidate publishToMavenLocal --info + - name: Zip and publish to Bintray + run: | + cd ~/.m2/repository + zip release.zip org/openrndr/extra/*/${{ steps.get_version.outputs.VERSION }}/* + curl -u ${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }} -X PUT https://api.bintray.com/content/openrndr/openrndr/ \ + -H "X-Bintray-Package:orx" \ + -H "X-Bintray-Version:${{ steps.get_version.outputs.VERSION }}" \ + -H "X-Bintray-Publish:1" \ + -H "X-Bintray-Override:1" \ + -H "X-Bintray-Explode:1" \ + -T release.zip \ No newline at end of file diff --git a/.github/workflows/release-to-bintray.yml b/.github/workflows/release-to-bintray.yml index c8c7ae5a9..13416e373 100644 --- a/.github/workflows/release-to-bintray.yml +++ b/.github/workflows/release-to-bintray.yml @@ -3,7 +3,6 @@ on: push: tags: - v[0-9].[0-9]+.[0-9]+ - - v[0-9].[0-9]+.[0-9]+-rc.[0-9]+ jobs: build: runs-on: ubuntu-18.04 @@ -16,7 +15,7 @@ jobs: with: java-version: 8 - name: Build and publish to local maven - run: ./gradlew -Prelease.useLastTag=true candidate publishToMavenLocal --info + run: ./gradlew -Prelease.useLastTag=true release publishToMavenLocal --info - name: Zip and publish to Bintray run: | cd ~/.m2/repository diff --git a/build.gradle b/build.gradle index 850541736..5daeca7f8 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ buildscript { apply plugin: 'org.jetbrains.dokka' project.ext { - openrndrVersion = "0.3.42-rc.9" + openrndrVersion = "0.3.42" kotlinVersion = "1.3.72" spekVersion = "2.0.10" libfreenectVersion = "0.5.7-1.5.3"