-
Notifications
You must be signed in to change notification settings - Fork 43
75 lines (58 loc) · 2.08 KB
/
Release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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