-
Notifications
You must be signed in to change notification settings - Fork 105
48 lines (44 loc) · 1.38 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
name: Publish action
on:
workflow_dispatch:
branches: [ "main" ]
inputs:
version:
description: 'Mod Version'
required: true
type: string
env:
MINECRAFT_VERSION: 1.19.2
JAVA_VERSION: 17
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk 17
uses: actions/setup-java@v1
with:
java-version: "17"
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: Publish Minecraft Mods Forge
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 401955
modrinth-id: TKB6INcv
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files-primary: build/libs/!(*-@(dev|sources)).jar
files-secondary: build/libs/*-@(dev|sources).jar
version-type: release
loaders: forge
name: Ars Nouveau ${{ env.MINECRAFT_VERSION }}-${{ inputs.version }}
version: ars_nouveau-${{ env.MINECRAFT_VERSION }}-${{ inputs.version }}
game-version: ${{ env.MINECRAFT_VERSION }}
changelog: ""