Skip to content

Commit

Permalink
Revert changes to publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
pupnewfster committed Jun 27, 2024
1 parent fcb0d5e commit 84bd9a5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,19 @@ jobs:
build/neoForm
~/.gradle
.gradle
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build outputChangelog
gradle-version: wrapper
cache-read-only: false

- name: Build with Gradle
run: ./gradlew build outputChangelog
env:
BUILD_NUMBER: ${{ github.run_number }}
GIT_COMMIT: ${{ github.sha }}
Expand All @@ -89,7 +86,11 @@ jobs:
target_commitish: ${{ github.sha }}

- name: Publish
run: ./gradlew curseforge modrinth publish
uses: gradle/gradle-build-action@v3
with:
arguments: curseforge modrinth publish
gradle-version: wrapper
cache-read-only: false
env:
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
Expand Down

0 comments on commit 84bd9a5

Please sign in to comment.