Skip to content

Commit ff3e232

Browse files
committed
Prepare for reading from env var
1 parent 6bca63d commit ff3e232

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/gradle-release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
java-version: '8'
2020
- name: Build and deploy with Gradle
2121
uses: eskatos/gradle-command-action@v1
22+
env:
23+
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
24+
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
2225
with:
2326
arguments: clean -i build generatePomFileForPluginPublicationPublication bintrayUpload -PRELEASE -Porg.gradle.java.installations.fromEnv=JAVA_HOME_6_0_119_X64 -PjavaCompilerVersion=6 -Pteamcity-build-scan-plugin.acceptGradleTOS=true
2427
wrapper-cache-enabled: true

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ publishing.publications {
9090
}
9191

9292
bintray {
93-
user = credentials.BINTRAY_USER
94-
key = credentials.BINTRAY_API_KEY
93+
user = credentials.BINTRAY_USER ?: System.getenv('BINTRAY_USER')
94+
key = credentials.BINTRAY_API_KEY ?: System.getenv('BINTRAY_API_KEY')
9595
publications = ['PluginPublication']
9696

9797
publish = true

0 commit comments

Comments
 (0)