File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Release Master
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ name : Build for ${{ matrix.Java }}
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Set up JDK 11
15+ uses : actions/setup-java@v2
16+ with :
17+ java-version : 11
18+ distribution : ' adopt'
19+ - name : Grant execute permission for gradlew
20+ run : chmod +x gradlew
21+ - name : Build with Gradle
22+ run : |
23+ export JAVA_COMPILATION_VERSION=11
24+ ./gradlew build
25+ export JAVA_COMPILATION_VERSION=8
26+ ./gradlew build
27+ - name : Bump Release Version
28+ id : tag_version
29+ uses :
mathieudutour/[email protected] 30+ with :
31+ github_token : ${{ secrets.GITHUB_TOKEN }}
32+ - name : Create Release
33+ id : create_release
34+ uses : softprops/action-gh-release@v1
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+ with :
38+ tag_name : ${{ steps.tag_version.outputs.new_tag }}
39+ name : ${{ steps.tag_version.outputs.new_tag }}
40+ body : ${{ steps.tag_version.outputs.changelog }}
41+ draft : true
42+ prerelease : false
43+ files : ./streaming-connect-sink/build/libs/streaming-connect-sink-*.jar
Original file line number Diff line number Diff line change 1+ name : Pull Request Build and Test
2+
3+ on :
4+ pull_request :
5+ branches : [ master ]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ java : [ '8', '11' ]
13+ name : Build for ${{ matrix.Java }}
14+ steps :
15+ - uses : actions/checkout@v2
16+ - name : Set up JDK 11
17+ uses : actions/setup-java@v2
18+ with :
19+ java-version : ${{ matrix.java }}
20+ distribution : ' adopt'
21+ - name : Grant execute permission for gradlew
22+ run : chmod +x gradlew
23+ - name : Build with Gradle
24+ run : ./gradlew clean build
You can’t perform that action at this time.
0 commit comments