Skip to content

Fabric and NeoForge Publish #4

Fabric and NeoForge Publish

Fabric and NeoForge Publish #4

Workflow file for this run

name: Mod Publish
on: [ workflow_dispatch ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check Environment Variables
run: env
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '21'
- name: Make Gradle Wrapper Executable
run: chmod +x gradlew
- name: Set Environment Variables from Gradle
run: ./gradlew printEnv
- name: Build Fabric
run: ./gradlew fabric:build
- name: Build NeoForge
run: ./gradlew neoforge:build
- name: Publish Fabric (Modrinth & CurseForge)
uses: Kir-Antipov/[email protected]
with:
modrinth-id: 696WgnvT
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 1073022
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
files: |
fabric/build/libs/*.jar
name: ${{ env.RELEASE_NAME }}
version: ${{ env.MOD_VERSION }}
version-type: 'beta'
changelog-file: CHANGELOG.md
game-versions: ${{ env.GAME_VERSIONS }}
loaders: |
fabric
quilt
dependencies: |
fabric-api
sodium
sodium-extra
java: ${{ env.JAVA_VERSION }}
- name: Publish Neoforge (Modrinth & CurseForge)
uses: Kir-Antipov/[email protected]
with:
modrinth-id: 696WgnvT
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 1073022
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
files: |
neoforge/build/libs/*.jar
name: ${{ env.RELEASE_NAME }}
version: ${{ env.MOD_VERSION }}
version-type: 'beta'
changelog-file: CHANGELOG.md
game-versions: ${{ env.GAME_VERSIONS }}
loaders: |
neoforge
dependencies: |
sodium
sodium-extra
java: ${{ env.JAVA_VERSION }}