GeezerVison is showing github.com — - add support for bintray releasing · max2max4u/AboutLibraries@db28c82
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
72 | 72 | if: startsWith(github.ref, 'refs/tags/') |
73 | 73 | run: ./gradlew app:assembleStaging app:assembleRelease app:bundleRelease |
74 | 74 |
|
| 75 | + - name: Relase bintray |
| 76 | + if: startsWith(github.ref, 'refs/tags/') |
| 77 | + run: | |
| 78 | + ./gradlew library-core:bintrayUpload -Plibrary_core_only |
| 79 | + ./gradlew library:bintrayUpload -x test -x lint -Plibrary_only |
| 80 | + ./gradlew library-definitions:bintrayUpload -x test -x lint -Plibrary_definitions_only |
| 81 | + env: |
| 82 | + BINTRAY_USER: ${{ secrets.BINTRAY_USER }} |
| 83 | + BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }} |
| 84 | + BINTRAY_GPG_PASS: ${{ secrets.BINTRAY_GPG_PASS }} |
| 85 | + NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} |
| 86 | + NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} |
| 87 | + |
75 | 88 | - name: Collect artifacts |
76 | 89 | run: | |
77 | 90 | COLLECT_PWD=${PWD} |
|
Collapse file
Copy file name to clipboardExpand all lines: gradle-release.gradle +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,12 +5,12 @@ def isReleaseBuild() { |
5 | 5 |
|
6 | 6 | @SuppressWarnings("GroovyUnusedDeclaration") |
7 | 7 | def getRepositoryUsername() { |
8 | | - return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : "" |
| 8 | + return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : System.getenv('NEXUS_USERNAME') |
9 | 9 | } |
10 | 10 |
|
11 | 11 | @SuppressWarnings("GroovyUnusedDeclaration") |
12 | 12 | def getRepositoryPassword() { |
13 | | - return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : "" |
| 13 | + return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : System.getenv('NEXUS_PASSWORD') |
14 | 14 | } |
15 | 15 |
|
16 | 16 | apply plugin: "com.jfrog.bintray" |
|