-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 997 Bytes
/
build_and_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
name: Build and Publish
on:
release:
types: [published]
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: setup jdk 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'microsoft'
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: publish to modrinth and curseforge
uses: Kir-Antipov/[email protected]
with:
modrinth-id: 3YyJXLPe
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 520624
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
# Determines the way automatic game-versions resolvement works
game-version-filter: min-major | min-minor | releases
java: 21