-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.08 KB
/
gradle.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: Create release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*.*.*' # Push events to matching v*, i.e. v1.0, v20.15.10
env:
JAVA_VERSION: 21
MODRINTH_TOKEN: ${{ secrets.PUBLISH_MODRINTH_TOKEN }}
# CURSEFORGE_TOKEN: ${{ secrets.PUBLISH_CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }}
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Environment Variables
run: env
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: "${{env.JAVA_VERSION}}"
distribution: 'temurin'
- name: Build
run: ./gradlew clean build
- name: Publish Modrinth
uses: Kir-Antipov/mc-publish@v3.3
with:
version-type: alpha
changelog-file: CHANGELOG.md
java: "${{env.JAVA_VERSION}}"
modrinth-id: oBzw5QUs
modrinth-token: "${{env.MODRINTH_TOKEN}}"