diff --git a/.github/workflows/UploadReleaseGithub.yml b/.github/workflows/UploadReleaseGithub.yml index 8aaed07..d2f6323 100644 --- a/.github/workflows/UploadReleaseGithub.yml +++ b/.github/workflows/UploadReleaseGithub.yml @@ -15,6 +15,10 @@ jobs: steps: - uses: actions/checkout@v1 # Only release from main branch - - name: Upload if on production branch + - name: Upload if on main branch if: endsWith(github.event.base_ref, 'test') == true run: ./gradlew publish + # Only release from main branch + - name: Write if not in main branch + if: endsWith(github.event.base_ref, 'test') == false + run: echo NOT ON MAIN BRANCH