Skip to content

1.2.0 (1.21)

1.2.0 (1.21) #6

Workflow file for this run

name: mc_publish
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'microsoft'
- name: Make Gradle Wrapper Executable
run: chmod +x ./gradlew
- name: Build
run: ./gradlew clean build
- name: Publish using mc-publish
uses: Kir-Antipov/mc-publish@v3.3.0
with:
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}