From 19ed53857382912cd109af1db111543716a101c2 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 21 Nov 2020 14:24:56 +0100 Subject: [PATCH] GitHub Actions: added secrets for snapshot and release jobs --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d70d7bb..826689b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: restore-keys: ${{ runner.os }}-gradle - name: Build with Gradle - run: echo ./gradlew build + run: ./gradlew build snapshot: @@ -85,7 +85,10 @@ jobs: restore-keys: ${{ runner.os }}-gradle - name: Publish snapshot to oss.jfrog.org - run: echo ./gradlew artifactoryPublish + run: ./gradlew artifactoryPublish + env: + BINTRAY_USER: ${{ secrets.BINTRAY_USER }} + BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} release: @@ -118,4 +121,7 @@ jobs: restore-keys: ${{ runner.os }}-gradle - name: Release a new stable version to bintray - run: echo ./gradlew bintrayUpload -Drelease=true + run: ./gradlew bintrayUpload -Drelease=true + env: + BINTRAY_USER: ${{ secrets.BINTRAY_USER }} + BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}