-
Notifications
You must be signed in to change notification settings - Fork 105
55 lines (49 loc) · 1.41 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
51
52
53
54
55
name: Publish on GitHub, CurseForge and Modrinth
on:
workflow_dispatch:
branches: [ "main" ]
inputs:
version:
description: 'Mod Version'
required: true
type: string
env:
MINECRAFT_VERSION: 1.19.2
JAVA_VERSION: 17
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
- shell: bash
env:
VERSION: ${{ inputs.version }}
run: |
echo "$VERSION" > version
mkdir -p ~/.gradle/caches/fabric-loom/assets
- name: Setup and Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: clean runData build
- uses: GuillaumeFalourd/[email protected]
with:
commit_message: "ci: bump version"
- uses: Kir-Antipov/[email protected]
with:
modrinth-id: TKB6INcv
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 401955
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: ars_artifice-${{ env.MINECRAFT_VERSION }}-${{ inputs.version }}
version: ${{ inputs.version }}
game-versions: |
${{ env.MINECRAFT_VERSION }}
version-resolver: exact