Skip to content

Commit

Permalink
Fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Dec 21, 2024
1 parent 7f910f4 commit 79af579
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@
with:
fetch-depth: 0
fetch-tags: true
# - name: Set up JDK 21
# uses: actions/setup-java@v3
# with:
# java-version: '21'
# distribution: 'oracle'
# server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
# settings-path: ${{ github.workspace }} # location for the settings.xml file
# - name: Setup Gradle
# uses: gradle/gradle-build-action@v2
# - name: Publish
# run: ./gradlew publish
# env:
# MAVEN_USER: ${{ secrets.MAVEN_USER }}
# MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
# BUILD_NUMBER: ${{ github.run_number }}
# - name: CurseForge Publish
# run: ./gradlew curseforge -PcurseApiKey=${CURSE_API_KEY}
# env:
# CURSE_API_KEY: ${{ secrets.CURSE_API_KEY }}
# BUILD_NUMBER: ${{ github.run_number }}
# continue-on-error: true
# - name: Modrinth Publish
# run: ./gradlew modrinth -PmodrinthToken=${MODRINTH_TOKEN}
# env:
# MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
# BUILD_NUMBER: ${{ github.run_number }}
# continue-on-error: true
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'oracle'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Publish
run: ./gradlew publish
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
BUILD_NUMBER: ${{ github.run_number }}
- name: CurseForge Publish
run: ./gradlew curseforge -PcurseApiKey=${CURSE_API_KEY}
env:
CURSE_API_KEY: ${{ secrets.CURSE_API_KEY }}
BUILD_NUMBER: ${{ github.run_number }}
continue-on-error: true
- name: Modrinth Publish
run: ./gradlew modrinth -PmodrinthToken=${MODRINTH_TOKEN}
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
BUILD_NUMBER: ${{ github.run_number }}
continue-on-error: true

0 comments on commit 79af579

Please sign in to comment.