Skip to content

Merge branch 'main' into experimental/foundation #4

Merge branch 'main' into experimental/foundation

Merge branch 'main' into experimental/foundation #4

Workflow file for this run

name: Auto Releases
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/[email protected]
with:
fetch-tags: true
fetch-depth: 0
- name: Set up JDK 21
uses: actions/[email protected]
with:
java-version: '21'
distribution: 'temurin'
- name: Fix Gradle permission
run: chmod +x ./gradlew
- name: Setup Forge env
run: ./gradlew setup -Prun_number=${{ github.run_number }} -Prelease=true
- name: Get version
run: echo "CLEANROOM_VERSION=$(cat version.txt)" >> $GITHUB_ENV
- name: Stop Gradle daemon
run: ./gradlew --stop
- name: Build Jars
run: ./gradlew installerJar -Prun_number=${{ github.run_number }} -Prelease=true
- name: Stop Gradle daemon again
run: ./gradlew --stop
- name: Publish to maven for mod development
run: ./gradlew publish -PoutlandUsername=${{ secrets.MAVEN_USERNAME }} -PoutlandPassword="${{ secrets.MAVEN_PASSWORD }}" -Prun_number=${{ github.run_number }} -Prelease=true
- name: Checkout CleanroomMMC
uses: actions/[email protected]
with:
repository: CleanroomMC/CleanroomMMC
path: mmc
- name: setup python
uses: actions/[email protected]
with:
python-version: '3.12'
- name: Install script dependencies
run: |
python -m pip install --upgrade pip
pip install -r mmc/requirements.txt
- name: Generate MMC Pack
run: python main.py
working-directory: ./mmc
env:
PATH_TO_EXIST_INSTALLER: ../projects/cleanroom/build/libs/cleanroom-${{ env.CLEANROOM_VERSION }}-installer.jar
- name: Copy MMC Pack
run: cp mmc/build/CleanroomMMC.zip ./projects/cleanroom/build/libs/Cleanroom-MMC-instance-${{ env.CLEANROOM_VERSION }}.zip
- uses: ncipollo/[email protected]
with:
artifacts: "projects/cleanroom/build/libs/*"
generateReleaseNotes: true