Skip to content

Version 2.2.24 for Minecraft 1.21.1 #152

Version 2.2.24 for Minecraft 1.21.1

Version 2.2.24 for Minecraft 1.21.1 #152

Workflow file for this run

name: 'Release'
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
env:
MI_VERSION: ${{ github.event.release.tag_name }}
run: ./gradlew build
- name: Publish to ModMaven
uses: gradle/gradle-build-action@v2
with:
arguments: publishAllPublicationsToModmavenRepository
env:
MI_VERSION: ${{ github.event.release.tag_name }}
MODMAVEN_USER: ${{ secrets.MODMAVEN_USER }}
MODMAVEN_PASSWORD: ${{ secrets.MODMAVEN_PASSWORD }}
- name: Upload to Curseforge
env:
MI_VERSION: ${{ github.event.release.tag_name }}
CHANGELOG: ${{ github.event.release.body }}
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
run: ./gradlew curseforge405388
- name: Upload to Modrinth
env:
MI_VERSION: ${{ github.event.release.tag_name }}
CHANGELOG: ${{ github.event.release.body }}
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }}
run: ./gradlew modrinth
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: modern-industrialization ${{ github.event.release.tag_name }}
path: build/libs