-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (44 loc) · 1.51 KB
/
publish.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
name: mc-publish
on:
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build
run: rm -f fabric/build/libs/* neoforge/build/libs/* && ./gradlew jar && ./gradlew remapJar
- name: Publish Fabric
uses: Kir-Antipov/[email protected]
with:
modrinth-id: yjvKidNM
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 986380
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: fabric/build/libs/lighty-fabric-*([0-9]?(.))\+*([0-9wa]?(.))?(-pre*[0-9]).jar
loaders: |
fabric
quilt
fail-mode: warn
- name: Publish Neoforge
uses: Kir-Antipov/[email protected]
with:
modrinth-id: yjvKidNM
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 986380
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: neoforge/build/libs/lighty-neoforge-*([0-9]?(.))\+*([0-9wa]?(.))?(-pre*[0-9]).jar
fail-mode: warn