tag (release) flow #291
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: tag (release) flow | |
on: | |
create: | |
tags: | |
- '*' | |
jobs: | |
gradle-java11: | |
name: Java 11 release | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
with: | |
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag | |
# to figure out what version this is. optimizing this is left as a challenge to future committers | |
fetch-depth: 0 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Build with Gradle | |
# add --info or --debug below for more details when trying to understand issues | |
run: ./gradlew clean build javadoc --stacktrace --warning-mode all --no-daemon --parallel | |
- name: Branch tag | |
id: branch_tag | |
run: echo ::set-output name=RELEASE_TAG::${GITHUB_REF#refs/tags/} | |
- name: Publish to Jfrog | |
env: | |
JFROG_USER: ${{ secrets.JFROG_USER }} | |
JFROG_KEY: ${{ secrets.JFROG_KEY }} | |
# retain compatibility with the travis build (for now?) | |
TRAVIS_TAG: ${{ steps.branch_tag.outputs.RELEASE_TAG }} | |
run: ./scripts/publishToJfrog.sh |