-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (38 loc) · 1.23 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
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/* forge/build/libs/* && ./gradlew remapJar
- name: Publish Fabric
uses: Kir-Antipov/[email protected]
with:
modrinth-id: yjvKidNM
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: fabric/build/libs/lighty-fabric-*([0-9]?(.))\+*([0-9]?(.)).jar
loaders: |
fabric
quilt
- name: Publish Forge
uses: Kir-Antipov/[email protected]
with:
modrinth-id: yjvKidNM
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: forge/build/libs/lighty-forge-*([0-9]?(.))\+*([0-9]?(.)).jar