Enable for pull requests
name: Build and Release Workflow
-on: [push]
+on: [push, pull_request]
jobs:
build:
@@ -37,7 +37,7 @@ jobs:
with:
arguments: docTest
- name: Release
- if: startsWith(github.ref, 'refs/tags/v')
+ if: env.BRANCH == 'master' && startsWith(github.ref, 'refs/tags/v')
uses: eskatos/gradle-command-action@v1
with:
arguments: assemble bintrayUpload gitPublishPush -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GITHUB_TOKEN }} -s
\ No newline at end of file
