-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (31 loc) · 856 Bytes
/
publish.yml
File metadata and controls
37 lines (31 loc) · 856 Bytes
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
name: Publish on Modrinth and Curseforge
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
name: Publish Minecraft Mods
environment: publish
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 21
- name: Gradle Build
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: build
- name: Publish
uses: Kir-Antipov/mc-publish@v3.3.0
with:
name: ""
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}