-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (40 loc) · 1.44 KB
/
release.yaml
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
name: Create Release
on:
push:
tags:
- 'release-*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Verify
run: ./gradlew check
- name: Build
run: ./gradlew shadowJar
- name: Publish to GitHub Packages Apache Maven
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Setup release information
id: release_info
run: |
export RELEASE_VERSION=`./gradlew properties -q | grep "version:" | awk '{print $2}'`
echo "::set-output name=release_version::${RELEASE_VERSION}"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ steps.release_info.outputs.release_version }}
draft: false
prerelease: false
files: |
commit-analytics/build/libs/flink-repository-analytics-commit-analytics-${{ steps.release_info.outputs.release_version }}.jar
import/build/libs/flink-repository-analytics-import-${{ steps.release_info.outputs.release_version }}.jar
sql-functions/build/libs/flink-repository-analytics-sql-functions-${{ steps.release_info.outputs.release_version }}.jar
token: ${{ github.token }}
fail_on_unmatched_files: true