File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Gradle
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+ name : Build
5+
6+ on : [push]
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ environment : prod
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Set up JDK 8
15+ uses : actions/setup-java@v2
16+ with :
17+ java-version : ' 8'
18+ distribution : ' adopt'
19+ - name : Grant execute permission for gradlew
20+ run : chmod +x gradlew
21+ - name : Build with Gradle
22+ run : ./gradlew build
Original file line number Diff line number Diff line change 11# This workflow will build a Java project with Gradle
22# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
33
4- name : Java CI with Gradle
4+ name : Publish
55
66on :
77 push :
88 branches : [ master ]
99 paths :
1010 - ' src/**'
11- pull_request :
12- branches : [ master ]
13- paths :
14- - ' src/**'
1511
1612jobs :
1713 publish :
You can’t perform that action at this time.
0 commit comments