File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -12,34 +12,35 @@ jobs:
1212 name : Build
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v2
16- with :
17- fetch-depth : 0
18- - name : Set up JDK 16
19- uses : actions/setup-java@v2.5.0
15+ - uses : actions/checkout@v3
16+ - name : Restore gradle.properties
17+ env :
18+ GRADLE_PROPERTIES : ${{ secrets.GRADLE_PROPERTIES }}
19+ shell : bash
20+ run : |
21+ mkdir -p ~/.gradle/
22+ echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
23+ echo "${GRADLE_PROPERTIES}" > ~/.gradle/gradle.properties
24+ - name : Set up JDK 21
25+ uses : actions/setup-java@v2.5.1
2026 with :
2127 distribution : ' temurin'
22- java-version : 16
23-
28+ java-version : ' 21'
2429 - name : Cache
25- uses : actions/cache@v2
30+ uses : actions/cache@v3
2631 with :
2732 path : |
2833 ~/.gradle/caches
2934 ~/.gradle/wrapper
3035 key : ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
3136 restore-keys : |
3237 ${{ runner.os }}-gradle-
33-
3438 - name : Change wrapper permissions
3539 run : chmod +x ./gradlew
36-
37-
3840 - name : Build artifacts
3941 run : ./gradlew build
40-
4142 - name : Upload a Build Artifact
42- uses : actions/upload-artifact@v2.3.1
43+ uses : actions/upload-artifact@v4
4344 with :
4445 name : EternalTags
4546 path : ./build/libs/EternalTags-**.jar
You can’t perform that action at this time.
0 commit comments