Skip to content

Commit

Permalink
Update UploadReleaseGithub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlatrifork committed Nov 24, 2023
1 parent 7f2f627 commit 8c56c59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/UploadReleaseGithub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8c56c59

Please sign in to comment.