-
Notifications
You must be signed in to change notification settings - Fork 18
86 lines (73 loc) · 2.32 KB
/
deploy.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
76
77
78
79
80
81
82
83
84
85
86
name: Deploy
on:
push:
tags:
- '[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Grant Execute Permission for gradlew
run: chmod +x gradlew
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: Publish to Maven
uses: gradle/gradle-build-action@v2
with:
arguments: |
publish
-PCleanroomMaven=${{ vars.CLEANROOM_MAVEN }}
-PCleanroomMavenUsername=${{ secrets.MAVEN_NAME }}
-PCleanroomMavenPassword=${{ secrets.MAVEN_PASSWORD }}
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
path: build/libs/
upload:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Download Artifacts
uses: actions/download-artifact@v3
- name: Read gradle.properties
uses: BrycensRanch/read-properties-action@v1
id: properties
with:
file: gradle.properties
all: true
- name: Read CHANGELOG.md
id: changelog
uses: 3liz/changelog-release@0.2.0
with:
add_emojis: false
- name: Publish to CurseForge + Modrinth
uses: Kir-Antipov/mc-publish@v3.3
with:
name: ${{ steps.properties.outputs.mod_name }} ${{ steps.properties.outputs.mod_version }}
version: ${{ steps.properties.outputs.mod_version }}
version-type: ${{ steps.properties.outputs.version_type }}
changelog: ${{ steps.changelog.outputs.markdown }}
loaders: forge
game-versions: |
[1.8,1.12.2]
game-version-filter: releases
java: 8
files: |
artifact/!(*-@(dev|sources|javadoc)).jar
artifact/*-@(dev).jar
artifact/*-@(sources).jar
artifact/*-@(javadoc).jar
github-token: ${{ secrets.GITHUB_TOKEN }}
curseforge-id: 419286
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-id: G1ckZuWK
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}