1.20.2-1.7.1 #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Publish to CurseForge and Modrinth | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
- name: Publish Forge to CurseForge and Modrinth | |
uses: Kir-Antipov/mc-publish@v3.2 | |
with: | |
modrinth-id: 4sQDl6he | |
modrinth-featured: true | |
modrinth-unfeature-mode: intersection | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
curseforge-id: 658780 | |
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }} | |
files-primary: forge/build/libs/!(*-@(dev|dev-shadow|sources|javadoc)).jar | |
files-secondary: forge/build/libs/*-@(dev|dev-shadow|sources|javadoc).jar | |
name: "" | |
version-type: release | |
modrinth-dependencies: | | |
jei | suggests | |
rei | suggests | |
curseforge-dependencies: | | |
jei | suggests | |
roughly-enough-items | suggests | |
loaders: | | |
forge | |
neoforge | |
modrinth-game-versions: | | |
1.20.2 | |
1.20.1 | |
1.20 | |
1.19.4 | |
1.19.3 | |
curseforge-game-versions: | | |
1.20.2 | |
1.20.1 | |
1.20 | |
1.19.4 | |
1.19.3 | |
java: | | |
18 | |
17 | |
retry-attempts: 2 | |
retry-delay: 10000 | |
fail-mode: fail | |
- name: Publish Fabric to CurseForge and Modrinth | |
uses: Kir-Antipov/mc-publish@v3.2 | |
with: | |
modrinth-id: 4sQDl6he | |
modrinth-featured: true | |
modrinth-unfeature-mode: intersection | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
curseforge-id: 658780 | |
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }} | |
files-primary: fabric/build/libs/!(*-@(dev|dev-shadow|sources|javadoc)).jar | |
files-secondary: fabric/build/libs/*-@(dev|dev-shadow|sources|javadoc).jar | |
name: "" | |
version-type: release | |
modrinth-dependencies: | | |
fabric-api | depends | |
jei | suggests | |
rei | suggests | |
curseforge-dependencies: | | |
fabric-api | depends | |
jei | suggests | |
roughly-enough-items | suggests | |
loaders: | | |
fabric | |
quilt | |
modrinth-game-versions: | | |
1.20.2 | |
1.20.1 | |
1.20 | |
1.19.4 | |
1.19.3 | |
curseforge-game-versions: | | |
1.20.2 | |
1.20.1 | |
1.20 | |
1.19.4 | |
1.19.3 | |
java: | | |
18 | |
17 | |
retry-attempts: 2 | |
retry-delay: 10000 | |
fail-mode: fail |