Skip to content

MCG 1.5.0 for Minecraft 1.20.6 #9

MCG 1.5.0 for Minecraft 1.20.6

MCG 1.5.0 for Minecraft 1.20.6 #9

Workflow file for this run

name: Release CI
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build
run: ./gradlew build
- name: Publish to Modrinth
run: ./gradlew modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CHANGELOG_BODY: ${{ github.event.release.body }}
- name: Upload assets to release
uses: AButler/upload-release-assets@v3.0
with:
files: 'build/libs/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}