Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fix: Package published to GitHub packages instead of Bintray (#14)
Browse files Browse the repository at this point in the history
ci: Fix for publishing to GitHub packages (#15)
  • Loading branch information
lholota committed Jun 22, 2020
1 parent 434c12a commit 3ba2a9f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 66 deletions.
35 changes: 0 additions & 35 deletions .github/settings.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ jobs:
- name: Gradle - test
run: gradle test

- name: Gradle - publish to bintray
- name: Gradle - publish to GitHub packages
if: env.RELEASE_VERSION != ''
run: gradle bintrayUpload
run: gradle publish
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 9 additions & 27 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugins{
id 'com.jfrog.bintray' version '1.8.5'
id 'java-library'
id 'idea'
id 'maven-publish'
Expand Down Expand Up @@ -42,34 +41,17 @@ artifacts{
archives javadocJar
}

bintray{
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_API_KEY")
publications = ['TestContainersExtensions']
publish = true

pkg{
repo = String.valueOf(System.getenv('BINTRAY_REPO')).toLowerCase()
userOrg = String.valueOf(System.getenv('BINTRAY_ORG')).toLowerCase()
name = 'testcontainers-extensions'
licenses = ['MIT']
vcsUrl = 'https://github.com/homecentr/testcontainers-extensions.git'
websiteUrl = 'https://github.com/homecentr/testcontainers-extensions'
issueTrackerUrl = 'https://github.com/homecentr/testcontainers-extensions/issues'
publicDownloadNumbers = true

githubRepo = 'homecentr/testcontainers-extensions'
githubReleaseNotesFile = 'README.md'

version {
name = String.valueOf(System.getenv("RELEASE_VERSION")).replace("v", "")
vcsTag = String.valueOf(System.getenv("GITHUB_SHA")).toLowerCase()
released = new Date()
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/homecentr/testcontainers-extensions")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

publishing {
publications {
TestContainersExtensions(MavenPublication){
from components.java
Expand Down

0 comments on commit 3ba2a9f

Please sign in to comment.