Skip to content

Commit c3265e2

Browse files
committed
Merge remote-tracking branch 'origin/1.16.x' into 1.16.x
2 parents 2c6fea7 + 8dfe6c8 commit c3265e2

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

.github/workflows/gradle.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
on:
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

.github/workflows/test-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
 (0)