Skip to content

Commit 9f8ee10

Browse files
Fix GitHub actions file formatting and update to Java 21
1 parent bc33f02 commit 9f8ee10

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/build-publish-discord.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
path: gradle.properties
4242
properties: minecraft_version
4343

44-
- name: Set up JDK 17
44+
- name: Set up JDK 21
4545
uses: actions/setup-java@v3
4646
with:
47-
java-version: 17
47+
java-version: 21
4848
distribution: temurin
4949

5050
- name: Setup Gradle
@@ -53,13 +53,13 @@ jobs:
5353
- name: Build with Gradle
5454
run: ./gradlew build
5555

56-
# - name: Publish to GitHub Packages
57-
# if: github.event_name == 'push' && github.repository_id == '521749383'
58-
# uses: gradle/gradle-build-action@v2
59-
# with:
60-
# arguments: publishMavenJavaPublicationToGitHubPackagesRepository
61-
# env:
62-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
# - name: Publish to GitHub Packages
57+
# if: github.event_name == 'push' && github.repository_id == '521749383'
58+
# uses: gradle/gradle-build-action@v2
59+
# with:
60+
# arguments: publishMavenJavaPublicationToGitHubPackagesRepository
61+
# env:
62+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363

6464
- name: Send built file to discord
6565
if: github.event_name == 'push'
@@ -69,8 +69,8 @@ jobs:
6969
with:
7070
args: ./build/libs/*.*
7171

72-
# - name: Archive Artifacts
73-
# uses: actions/upload-artifact@v3
74-
# with:
75-
# name: createrobotics-${{ steps.get_mc_version.outputs.minecraft_version }}-nightly-${{ steps.get_hash.outputs.sha_short }}
76-
# path: build/libs/
72+
# - name: Archive Artifacts
73+
# uses: actions/upload-artifact@v3
74+
# with:
75+
# name: createrobotics-${{ steps.get_mc_version.outputs.minecraft_version }}-nightly-${{ steps.get_hash.outputs.sha_short }}
76+
# path: build/libs/

0 commit comments

Comments
 (0)