Skip to content

Commit

Permalink
Make body sync dependent on modrinth
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Mar 22, 2024
1 parent e607dfc commit 3bb4b04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_to_modrinth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MODRINTH_CHANNEL: release
run: ./gradlew modrinth && ./gradlew modrinthSyncBody
run: ./gradlew modrinth
- name: Publish dev to Modrinth
if: github.ref_name == 'dev'
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MODRINTH_CHANNEL: development
run: ./gradlew modrinth && ./gradlew modrinthSyncBody
run: ./gradlew modrinth
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ tasks {
test {
useJUnitPlatform()
}
getByName("modrinth") {
dependsOn(modrinthSyncBody)
}
}

hangarPublish {
Expand Down

0 comments on commit 3bb4b04

Please sign in to comment.