-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (32 loc) · 1018 Bytes
/
release-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
36
name: release a new tag build workflow
on:
create:
tags:
- '*'
jobs:
build:
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
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
# add --info or --debug below for more details when trying to understand issues
run: ./gradlew clean build --stacktrace --no-daemon
- 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 }}
SOURCE_TAG: ${{ steps.branch_tag.outputs.RELEASE_TAG }}
run: |
chmod +x ./scripts/publishToJfrog.sh
./scripts/publishToJfrog.sh