File tree Expand file tree Collapse file tree 2 files changed +46
-3
lines changed
Expand file tree Collapse file tree 2 files changed +46
-3
lines changed 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 : Make Release from Tag
55
66on :
77 push :
@@ -15,12 +15,16 @@ jobs:
1515
1616 steps :
1717 - uses : actions/checkout@v2
18- - name : Caches
19- uses : burrunan/gradle-cache-action@v1
2018 - name : Set up JDK 1.8
2119 uses : actions/setup-java@v1
2220 with :
2321 java-version : 1.8
22+ - name : Cache Gradle packages
23+ uses : actions/cache@v2
24+ with :
25+ path : ~/.gradle/caches
26+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
27+ restore-keys : ${{ runner.os }}-gradle
2428 - name : Grant execute permission for gradlew
2529 run : chmod +x gradlew
2630 - name : Build with Gradle
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 : Test Build
5+
6+ on :
7+ workflow_dispatch :
8+
9+ jobs :
10+ build :
11+ name : Gradle Build and Publish
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v2
16+ - name : Set up JDK 1.8
17+ uses : actions/setup-java@v1
18+ with :
19+ java-version : 1.8
20+ - name : Cache Gradle packages
21+ uses : actions/cache@v2
22+ with :
23+ path : ~/.gradle/caches
24+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
25+ restore-keys : ${{ runner.os }}-gradle
26+ - name : Grant execute permission for gradlew
27+ run : chmod +x gradlew
28+ - name : Generate Data
29+ run : ./gradlew runData
30+ - name : Build with Gradle
31+ run : ./gradlew jar
32+ env :
33+ GITHUB_ACTOR : ${{ secrets.GITHUB_ACTOR }}
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ - name : Add Artifact
36+ uses : actions/upload-artifact@v2
37+ with :
38+ name : libs
39+ path : build/libs/*.jar
You can’t perform that action at this time.
0 commit comments