Skip to content

Commit

Permalink
Added missing optional dependency on Modrinth
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurocosh committed Jun 18, 2024
1 parent bc7ade0 commit a028f3d
Showing 1 changed file with 9 additions and 39 deletions.
48 changes: 9 additions & 39 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,7 @@ jobs:
id: build
run: ./gradlew build

- name: Publish mod on Github (Optional)
if: ${{ steps.build.outputs.publish_mod == 'true' }}
uses: Kir-Antipov/[email protected]
with:
changelog: ${{ github.event.head_commit.message }}
files: build/libs/!(*-@(dev|sources|all)).jar

# GitHub publishing
github-tag: ${{ steps.build.outputs.github_tag }}
github-generate-changelog: true
github-prerelease: false
github-token: ${{ secrets.GITHUB_TOKEN }}

# Separate CurseForge and Modrinth uploads due to dependency difference
- name: Publish mod on CurseForge (Optional)
- name: Publish mod on CurseForge, Modrinth and Github (Optional)
if: ${{ steps.build.outputs.publish_mod == 'true' }}
uses: Kir-Antipov/[email protected]
with:
Expand All @@ -71,10 +57,6 @@ jobs:
changelog: ${{ github.event.head_commit.message }}
files: build/libs/!(*-@(dev|sources|all)).jar

# CurseForge publishing
curseforge-id: 322571
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

dependencies: |
forgelin-continuous(required)
patchouli(required)
Expand All @@ -83,31 +65,19 @@ jobs:
mtlib(optional)
max-potion-id-extender(optional)
# Separate CurseForge and Modrinth uploads due to dependency difference
- name: Publish mod on Modrinth (Optional)
if: ${{ steps.build.outputs.publish_mod == 'true' }}
uses: Kir-Antipov/[email protected]
with:
loaders: forge
name: ${{ steps.build.outputs.name }}
version: ${{ steps.build.outputs.version }}
version-type: ${{ steps.build.outputs.release_type }}
game-versions: 1.12.2
java: Java 1.8
changelog: ${{ github.event.head_commit.message }}
files: build/libs/!(*-@(dev|sources|all)).jar
# CurseForge publishing
curseforge-id: 322571
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

# Modrinth publishing
modrinth-id: rT6tg86B
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

dependencies: |
forgelin-continuous(required)
patchouli(required)
jei(optional)
crafttweaker(optional)
mtlib(optional)
# max-potion-id-extender(optional) # Not available on Modrinth at the moment
# GitHub publishing
github-tag: ${{ steps.build.outputs.github_tag }}
github-generate-changelog: true
github-prerelease: false
github-token: ${{ secrets.GITHUB_TOKEN }}

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
Expand Down

0 comments on commit a028f3d

Please sign in to comment.