-
-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (45 loc) · 1.24 KB
/
maven-release.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
name: Build & Release
on:
push:
tags: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn clean package
- name: Release
uses: Kir-Antipov/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
modrinth-id: 6zYtBRSV
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-featured: true
loaders: |
bukkit
spigot
paper
purpur
folia
game-versions: ">=1.8"
game-version-filter: releases
files: |
**/target/topper-*-shaded.jar
**/target/topper-*-@(sources|javadoc).jar
name: ${{ github.ref_name }}
changelog: ${{ steps.changelog.outputs.changelog }}
version: ${{ github.ref_name }}