-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (29 loc) · 812 Bytes
/
Copy pathpublish.yml
File metadata and controls
36 lines (29 loc) · 812 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
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@v6
with:
submodules: true
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: 25
- name: Gradle Setup
uses: gradle/actions/setup-gradle@v6
- run: ./gradlew 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 }}