Replace gradle bintray plugin with curl in action

This commit is contained in:
Edwin Jakobs
2020-04-27 22:34:05 +02:00
parent a79ed23710
commit 830aefe480
2 changed files with 16 additions and 24 deletions

View File

@@ -9,11 +9,22 @@ jobs:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get the version
id: get_version
run: export RELEASE_VERSION=${GITHUB_REF/refs\/tags\/v/}
- uses: actions/setup-java@v1 - uses: actions/setup-java@v1
with: with:
java-version: 8 java-version: 8
- name: Build and release to Bintray - name: Build and publish to local maven
env: run: ./gradlew -Prelease.useLastTag=true candidate publishToMavenLocal --info
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} - name: Zip and publish to Bintray
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} run: |
run: ./gradlew -Prelease.useLastTag=true candidate publishNebulaPublicationToBintrayRepository --info cd ~/.m2
zip release.zip org/openrndr/extra/*/${RELEASE_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:${RELEASE_VERSION}" \
-H "X-Bintray-Publish:1" \
-H "X-Bintray-Override:1" \
-H "X-Bintray-Explode:1" \
-T release.zip

View File

@@ -2,13 +2,11 @@ buildscript {
repositories { repositories {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.17" classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.17"
classpath "com.netflix.nebula:nebula-kotlin-plugin:1.3.72" classpath "com.netflix.nebula:nebula-kotlin-plugin:1.3.72"
classpath "com.netflix.nebula:nebula-publishing-plugin:17.0.5" classpath "com.netflix.nebula:nebula-publishing-plugin:17.0.5"
classpath "com.netflix.nebula:nebula-release-plugin:14.1.0" classpath "com.netflix.nebula:nebula-release-plugin:14.1.0"
classpath "com.netflix.nebula:nebula-bintray-plugin:8.3.0"
classpath "com.github.ben-manes:gradle-versions-plugin:0.28.0" classpath "com.github.ben-manes:gradle-versions-plugin:0.28.0"
} }
} }
@@ -55,10 +53,8 @@ allprojects {
apply plugin: 'nebula.source-jar' apply plugin: 'nebula.source-jar'
apply plugin: 'nebula.javadoc-jar' apply plugin: 'nebula.javadoc-jar'
apply plugin: 'nebula.nebula-bintray-publishing'
apply plugin: "com.github.ben-manes.versions" apply plugin: "com.github.ben-manes.versions"
group 'org.openrndr.extra' group 'org.openrndr.extra'
repositories { repositories {
@@ -103,21 +99,6 @@ allprojects {
} }
} }
bintray {
user = findProperty('bintrayUser') ?: System.getenv('BINTRAY_USER')
apiKey = findProperty('bintrayKey') ?: System.getenv('BINTRAY_KEY')
userOrg = 'openrndr'
repo = 'openrndr'
pkgName = 'orx'
gppSign = false
syncToMavenCentral = false
licenses = ['BSD-2-Clause']
vcsUrl = 'https://github.com/openrndr/orx.git'
websiteUrl = 'https://www.openrndr.org'
issueTrackerUrl = 'https://github.com/openrndr/orx/issues'
labels = ['creative-coding', 'realtime-rendering', 'opengl']
}
test { test {
useJUnitPlatform { useJUnitPlatform {
includeEngines 'spek2' includeEngines 'spek2'