Added branch to GitHub workflow

pull/215/head
M66B 6 months ago
parent 3fe601006a
commit 43b5b8231c

@ -7,7 +7,10 @@ on:
password: password:
description: 'Password' description: 'Password'
required: true required: true
branch:
description: 'Branch'
required: false
default: 'master'
jobs: jobs:
build: build:
@ -17,6 +20,8 @@ jobs:
#https://github.com/actions/setup-java #https://github.com/actions/setup-java
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- name: set up JDK 17 - name: set up JDK 17
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
@ -49,9 +54,9 @@ jobs:
run: ./gradlew assembleGithubRelease assembleLargeRelease assemblePlayRelease uploadBugsnagGithub-releaseMapping uploadBugsnagLarge-releaseMapping uploadBugsnagPlay-releaseMapping run: ./gradlew assembleGithubRelease assembleLargeRelease assemblePlayRelease uploadBugsnagGithub-releaseMapping uploadBugsnagLarge-releaseMapping uploadBugsnagPlay-releaseMapping
- name: Upload to BitBucket - name: Upload to BitBucket
run: | run: |
./gradlew upload -Ptarget=play-preview ./gradlew upload -Ptarget=play-preview-${{ github.event.inputs.branch }}
./gradlew upload -Ptarget=github-snapshot ./gradlew upload -Ptarget=github-snapshot-${{ github.event.inputs.branch }}
./gradlew upload -Ptarget=large-snapshot ./gradlew upload -Ptarget=large-snapshot-${{ github.event.inputs.branch }}
#https://github.com/actions/upload-artifact #https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:

Loading…
Cancel
Save