-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (58 loc) · 1.8 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
on:
push:
tags: [ '[0-9]+.[0-9]+.[0-9]+' ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
- name: Execute Gradle build
run: ./gradlew build
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
- name: Upload jar
uses: Kir-Antipov/[email protected]
with:
changelog: ${{ steps.changelog.outputs.changes }}
# Only include this section if you wish to publish
# your assets on Modrinth.
modrinth-id: item-converter
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
# Only include this section if you wish to publish
# your assets on CurseForge.
curseforge-id: 1143473
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
files: |
build/libs/!(*-@(fabric|sources|dev)).jar
build/libs/*-@(sources).jar
version: ${{ github.ref_name }}
loaders: |
forge
game-versions: |
1.19.2
game-version-filter: releases
dependencies: |
kotlin-for-forge
java: |
17
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md