-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.22 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
47
48
49
50
name: publish
on:
release:
types:
- published
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: 21
cache: "gradle"
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Publish mod
uses: Kir-Antipov/mc-publish@v3.3.0
with:
loaders: fabric
version-type: release
game-version-filter: releases
dependencies: |-
carpet(required)
# Publish to modrinth
modrinth-id: iIPoKpIW
modrinth-token: "${{ secrets.MODRINTH_TOKEN }}"
# Publish to curseforge
curseforge-id: 862771
curseforge-token: "${{ secrets.CURSEFORGE_TOKEN }}"
# Publish to github
github-token: ${{ secrets.GITHUB_TOKEN }}
update-rules-wiki:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Update wiki
uses: ./.github/actions/update-wiki