Skip to content

Commit

Permalink
Merge pull request #22 from rundeck/enh/remove-bintray-publishing
Browse files Browse the repository at this point in the history
Remove bintray publishing, move github release to gh action
  • Loading branch information
gschueler authored May 28, 2021
2 parents 6741279 + e1bd595 commit a7e1a23
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 59 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bintray publish tag release
name: Publish tag release

on:
push:
Expand All @@ -22,10 +22,15 @@ jobs:
run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo ::set-output name=VERSION::$VERSION
- name: Build with Gradle
run: ./gradlew build
- name: Publish to Bintray
run: ./gradlew -PbintrayUser=gschueler -PbintrayOrg=rundeck -PbintrayRepo=maven -PdryRun=false bintrayUpload
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
toolbelt/build/libs/toolbelt-*.jar
toolbelt-groovy/build/libs/toolbelt-*.jar
toolbelt-jewelcli/build/libs/toolbelt-*.jar
toolbelt-json-jackson/build/libs/toolbelt-*.jar
toolbelt-snakeyaml/build/libs/toolbelt-*.jar
env:
BINTRAY_TOKEN: ${{ secrets.BINTRAY_TOKEN }}
BINTRAY_USER: gschueler
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
fail_on_unmatched_files: true
15 changes: 0 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,3 @@ cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
deploy:
provider: releases
api_key:
secure: eBX7tZMdpqe5QO/NWX4nK1Hi+wm7Cv/uAghnQFSUmS1gfiB31DUS6dnujwpyFQcNHmtWFPrCkmNe+YFajTNfH2JDAEh+A2v3BfKpOVb+wLKYIx5r9IX+Eve+l93CvzI18N9qa2bleOSLzdM9gnv7sYeGrmE149uY56ydHi1eG99SakQGiCvd2HQ9RBSMgTBRL53czWi15UtAEL+QNCB8YfdUCAawBywIYug871h1Ruh9iHTmZoBTh9nKQ1VDAK6u2LSY8MhQa0oXiXCbZvomF7KcNnVS4v3HzTPg+klOEw/+i2bElJ7Rqskyv1jhwhOUsGtomjGDF9I81a+5XwZqIJBkVD9sk6eqs8f+GlgFkJOtjxvSsYKaeYL21aOusj3eHD4VWtDedMy1/01ss+NVpAgbiccrXUx3ndWt+S14s8+XGpV0BtnsfP5rjaLmB9QZmLI6Di1zc9Kp34unxHlPiFPGgjQ9k4DXTMzBEoc9C6UkJljo7yNfjb5jAefFvICXu3NOqSgrxYLJD8cG7Ya472CKQxFdkP4KFtz4inB7Q1VNlErXCk7qZuKSOtndF2Hina7P2pWzFdPZ3xNMWCujU8/y6yaDk0gaGPz5BWnhYvtFLl86hVxsn3h4fP/xvqc8PuhRdIvFCduycBEts/Rrh1YKLDyPJ+KJ+F3n9bLkB5Y=
file:
- toolbelt/build/libs/toolbelt*.jar
- toolbelt-jewelcli/build/libs/toolbelt-jewelcli*.jar
- toolbelt-groovy/build/libs/toolbelt-groovy*.jar
- toolbelt-snakeyaml/build/libs/toolbelt-snakeyaml*.jar
- toolbelt-json-jackson/build/libs/toolbelt-json-jackson*.jar
on:
repo: rundeck/cli-toolbelt
tags: true
file_glob: true
skip_cleanup: true
38 changes: 1 addition & 37 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
buildscript{
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}

plugins {
id 'pl.allegro.tech.build.axion-release' version '1.4.1'
id 'idea'
Expand All @@ -21,7 +17,6 @@ allprojects {
subprojects{
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'


java {
Expand Down Expand Up @@ -68,37 +63,6 @@ subprojects{
}
}
}

bintray {
user = findProperty("bintrayUser")
key = System.getenv("BINTRAY_TOKEN")

dryRun = (findProperty('dryRun') ?: 'true').toBoolean()
delegate.publish = true
publications = ["${project.name}Lib"]
pkg {
repo = findProperty('bintrayRepo')
name = 'cli-' + project.name
userOrg = findProperty('bintrayOrg')
licenses = ['Apache-2.0']
githubRepo = 'rundeck/cli-toolbelt' //Optional Github repository
vcsUrl = 'https://github.com/rundeck/cli-toolbelt.git'

version {
name = project.version
// mavenCentralSync {
// sync = true //[Default: true] Determines whether to sync the version to Maven Central.
// user = findProperty('ossUser') //OSS user token: mandatory
// password = System.getenv("OSS_PASSWORD") //OSS user password: mandatory
// }

gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = System.getenv('SIGNING_PASSWORD')
}
}
}
}
}
}

Expand Down

0 comments on commit a7e1a23

Please sign in to comment.