Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jun 16, 2024
1 parent 0c8c40f commit 66fe7cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"steps": [
{
"name": "Setup Java",
"run": "echo \"JAVA_HOME=$JAVA_HOME_17_X64\" >> \"$GITHUB_ENV\""
"run": "echo \"JAVA_HOME=$JAVA_HOME_21_X64\" >> \"$GITHUB_ENV\""
},
{
"with": {
Expand All @@ -20,9 +20,13 @@
"name": "Checkout",
"uses": "actions/checkout@v4"
},
{
"name": "Validate Gradle Wrapper",
"uses": "gradle/actions/wrapper-validation@v3"
},
{
"with": {
"path": "**/.gradle/loom-cache",
"path": "**/.gradle/loom-cache\n**/.gradle/quilt-loom-cache",
"key": "${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}",
"restore-keys": "${{ runner.os }}-gradle-"
},
Expand All @@ -34,7 +38,7 @@
"gradle-home-cache-cleanup": true
},
"name": "Setup Gradle",
"uses": "gradle/gradle-build-action@v3"
"uses": "gradle/actions/setup-gradle@v3"
},
{
"uses": "fregante/setup-git-user@v2"
Expand Down Expand Up @@ -75,7 +79,7 @@
"steps": [
{
"name": "Setup Java",
"run": "echo \"JAVA_HOME=$JAVA_HOME_17_X64\" >> \"$GITHUB_ENV\""
"run": "echo \"JAVA_HOME=$JAVA_HOME_21_X64\" >> \"$GITHUB_ENV\""
},
{
"with": {
Expand All @@ -85,9 +89,13 @@
"name": "Checkout",
"uses": "actions/checkout@v4"
},
{
"name": "Validate Gradle Wrapper",
"uses": "gradle/actions/wrapper-validation@v3"
},
{
"with": {
"path": "**/.gradle/loom-cache",
"path": "**/.gradle/loom-cache\n**/.gradle/quilt-loom-cache",
"key": "${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}",
"restore-keys": "${{ runner.os }}-gradle-"
},
Expand All @@ -99,7 +107,7 @@
"gradle-home-cache-cleanup": true
},
"name": "Setup Gradle",
"uses": "gradle/gradle-build-action@v3"
"uses": "gradle/actions/setup-gradle@v3"
},
{
"name": "Publish",
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ managedVersioning {
workflowDispatch = true
gradleJob {
name = 'build'
javaVersion = '21'
step {
setupGitUser()
}
Expand All @@ -29,6 +30,7 @@ managedVersioning {
}
gradleJob {
name.set 'publish'
javaVersion = '21'
needs.add('build')
readOnly = false
gradlew 'Publish', 'publish', 'closeAndReleaseSonatypeStagingRepository'
Expand Down

0 comments on commit 66fe7cf

Please sign in to comment.