-
Notifications
You must be signed in to change notification settings - Fork 46
42 lines (33 loc) · 1.08 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
name: Publish Mod
on:
workflow_dispatch:
inputs:
mod-version:
description: 'Mod version:'
required: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Build
run: ./gradlew build
- name: Publish
uses: Kir-Antipov/[email protected]
with:
name: Redstone Tools v1.18.2-${{ github.event.inputs.mod-version }}
modrinth-id: 9ySQVrz2
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
# curseforge-id: 849609
# curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-tag: v1.18.2-${{ github.event.inputs.mod-version }}
github-generate-changelog: false
github-token: ${{ secrets.RELEASE_TOKEN }}
files-primary: build/libs/redstonetools-1.18.2-${{ github.event.inputs.mod-version }}.jar
files-secondary: ''