Update UploadReleaseGithub.yml #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload release github | |
on: | |
push: | |
tags: | |
- release.** | |
jobs: | |
build: | |
environment: build | |
env: | |
GIT_USERNAME: ${{ secrets.GIT_USERNAME }} | |
GIT_AUTH_TOKEN: ${{ secrets.GIT_AUTH_TOKEN }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
# Only release from main branch | |
- name: Upload if on main branch | |
if: endsWith(github.event.base_ref, 'test04') == true | |
run: ./gradlew publish | |
# Only release from main branch | |
- name: Write if not in main branch | |
if: endsWith(github.event.base_ref, 'test04') == false | |
run: echo NOT ON MAIN BRANCH |