File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 49
49
runs-on : ubuntu-latest
50
50
steps :
51
51
- name : Checkout Repository
52
- uses : actions/checkout@v4.1.7
52
+ uses : actions/checkout@v4
53
53
with :
54
54
token : ${{ secrets.PAT }}
55
55
@@ -104,23 +104,23 @@ jobs:
104
104
fi
105
105
106
106
- name : Setup Java
107
- uses : actions/setup-java@v4.2.1
107
+ uses : actions/setup-java@v4
108
108
with :
109
109
distribution : ' temurin'
110
- java-version : ' 8 '
110
+ java-version : ' 21 '
111
111
112
112
- name : Grant execute permission for gradlew
113
113
run : chmod +x gradlew
114
114
115
115
- name : Setup Gradle
116
- uses : gradle/actions/setup-gradle@v3.4.2
116
+ uses : gradle/actions/setup-gradle@v3
117
117
118
118
- name : Build Project
119
119
run : ./gradlew build
120
120
121
121
- name : Publish to GitHub
122
122
if : env.publish-gh == 'true'
123
- uses : softprops/action-gh-release@v2.0.6
123
+ uses : softprops/action-gh-release@v2
124
124
with :
125
125
tag_name : " v${{ inputs.version }}"
126
126
token : ${{ secrets.PAT }}
Original file line number Diff line number Diff line change 24
24
25
25
steps :
26
26
- name : Checkout branch
27
- uses : actions/checkout@v4.1.7
27
+ uses : actions/checkout@v4
28
28
29
29
# https://github.com/madhead/read-java-properties#error-java_home-is-set-to-an-invalid-directory
30
30
- name : Gather Gradle properties
@@ -43,23 +43,23 @@ jobs:
43
43
run : sed -i "s/mod_version.*=.*/mod_version = ${{ steps.gradle_properties.outputs.mod_version }}-${{ steps.vars.outputs.SHA_SHORT }}/g" gradle.properties
44
44
45
45
- name : Set up Temurin JDK 8
46
- uses : actions/setup-java@v4.2.1
46
+ uses : actions/setup-java@v4
47
47
with :
48
48
distribution : ' temurin'
49
- java-version : ' 8 '
49
+ java-version : ' 21 '
50
50
cache : gradle # Only cache stuff since test build action happen mostly
51
51
52
52
- name : Grant execute permission for gradlew
53
53
run : chmod +x gradlew
54
54
55
55
- name : Setup Gradle
56
- uses : gradle/actions/setup-gradle@v3.4.2
56
+ uses : gradle/actions/setup-gradle@v3
57
57
58
58
- name : Build Project
59
59
run : ./gradlew build
60
60
61
61
- name : Upload Build Artifacts
62
- uses : actions/upload-artifact@v4.3.4
62
+ uses : actions/upload-artifact@v4
63
63
with :
64
64
name : GroovyScript-${{ steps.gradle_properties.outputs.modVersion }}-${{ github.run_number }}
65
65
path : build/libs
You can’t perform that action at this time.
0 commit comments