-
Notifications
You must be signed in to change notification settings - Fork 60
35 lines (33 loc) · 1.16 KB
/
tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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