-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.13 KB
/
release.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
37
38
39
40
41
42
43
44
# Doesn't do anything yet
name: Release
on:
release:
types: [ published ]
workflow_dispatch:
inputs:
rebuild:
description: 'A tag name for building previously created release'
required: false
default: '0.0.0'
buildOptions:
description: 'Additional options for Gradle build command'
required: false
default: ''
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
- name: Checkout main branch
uses: actions/checkout@v2
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
cache: gradle
- name: Build JAR file with Gradle
run: ./gradlew build -Pversion=${{ github.event.release.tag_name }}
- name: Upload files to a GitHub release
uses: svenstaro/[email protected]
with:
file: build/libs/odd-spark-adapter-${{ github.event.release.tag_name }}.jar
tag: ${{ github.event.release.tag_name }}