-
Notifications
You must be signed in to change notification settings - Fork 22
52 lines (44 loc) · 1.46 KB
/
1.12-auto-publish-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
name: 1.12 Auto Build Release Publish
on:
push:
branches:
- 'master'
paths:
- 'gradle.properties'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run the Gradle package task
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Get file name
id: var
run: |
MESSAGE=$(ls build/libs/* | grep sources.jar -v)
echo file_path=$MESSAGE >> $GITHUB_OUTPUT
- name: Upload to CurseForge
uses: itsmeow/curseforge-upload@v3
with:
token: ${{ secrets.CURSEFORGE_TOKEN }}
project_id: 604054
game_endpoint: minecraft
file_path: ${{ steps.var.outputs.file_path }}
changelog: See recent commits [here](https://github.com/CleanroomMC/Multiblocked/commits/${{ github.sha }}). This is only marked as a beta release so CurseForge shows it on the front page.
changelog_type: markdown
# 1.12.2, Java 8
game_versions: "Minecraft 1.12:1.12.2,Java 8,Forge"
release_type: beta
relations: mixin-booter:requiredDependency,geckolib:optionalDependency,jei:optionalDependency