From 3fdc96d6a50f246de508e494e10d5dfd44e81bf1 Mon Sep 17 00:00:00 2001 From: Theo Kanning Date: Mon, 5 Oct 2020 18:35:44 -0500 Subject: [PATCH] Fix publish.yml Now it will call the correct task and only fire once per release --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b26ccb1..53bf3d2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: Publish Artifacts on: release: - types: [published, created, edited] + types: [published] jobs: build: @@ -17,8 +17,8 @@ jobs: java-version: 1.8 - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew app:bintrayUpload client:bintrayUpload + - name: Publish Artifacts + run: ./gradlew api:bintrayUpload client:bintrayUpload env: RELEASE_VERSION : ${{ github.github_ref }} BINTRAY_USER : ${{ secrets.BINTRAY_USER }}