Bump to OPENRNDR 0.3.42, Fix publish to bintray

This commit is contained in:
Edwin Jakobs
2020-05-14 15:36:14 +02:00
parent 6605502737
commit c0db187643
3 changed files with 31 additions and 3 deletions

View File

@@ -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

View File

@@ -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