Skip to content

Update UploadReleaseGithub.yml #32

Update UploadReleaseGithub.yml

Update UploadReleaseGithub.yml #32

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, '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
run: echo ${{ github.event.base_ref }}

Check failure on line 25 in .github/workflows/UploadReleaseGithub.yml

View workflow run for this annotation

GitHub Actions / Upload release github

Invalid workflow file

The workflow is not valid. .github/workflows/UploadReleaseGithub.yml (Line: 25, Col: 9): 'run' is already defined