Skip to content

Commit 84bd9a5

Browse files
committed
Revert changes to publish action
1 parent fcb0d5e commit 84bd9a5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,19 @@ jobs:
5151
build/neoForm
5252
~/.gradle
5353
.gradle
54-
- name: Validate Gradle Wrapper
55-
uses: gradle/actions/wrapper-validation@v3
5654
- name: Setup Java
5755
uses: actions/setup-java@v4
5856
with:
5957
java-version: 21
6058
distribution: 'temurin'
6159
settings-path: ${{ github.workspace }} # location for the settings.xml file
6260

63-
- name: Setup Gradle
64-
uses: gradle/actions/setup-gradle@v3
61+
- name: Build with Gradle
62+
uses: gradle/gradle-build-action@v3
6563
with:
64+
arguments: build outputChangelog
65+
gradle-version: wrapper
6666
cache-read-only: false
67-
68-
- name: Build with Gradle
69-
run: ./gradlew build outputChangelog
7067
env:
7168
BUILD_NUMBER: ${{ github.run_number }}
7269
GIT_COMMIT: ${{ github.sha }}
@@ -89,7 +86,11 @@ jobs:
8986
target_commitish: ${{ github.sha }}
9087

9188
- name: Publish
92-
run: ./gradlew curseforge modrinth publish
89+
uses: gradle/gradle-build-action@v3
90+
with:
91+
arguments: curseforge modrinth publish
92+
gradle-version: wrapper
93+
cache-read-only: false
9394
env:
9495
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }}
9596
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

0 commit comments

Comments
 (0)