-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (40 loc) · 1.26 KB
/
Copy pathrelease.yml
File metadata and controls
51 lines (40 loc) · 1.26 KB
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
name: Release
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.3
- name: ☕ Setup JDK
uses: actions/setup-java@v5.2.0
with:
distribution: 'temurin'
java-version: '21'
- name: 🐘 Setup Gradle
uses: gradle/actions/setup-gradle@v6.1.0
- name: 🛠 Build with Gradle
run: ./gradlew build --stacktrace
- name: 📦 Capture build artifacts
uses: actions/upload-artifact@v7.0.1
with:
name: Artifacts
path: build/libs/
- name: 🚀 Upload artifacts to Modrinth and GitHub
uses: Kir-Antipov/mc-publish@v3.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
modrinth-id: ZTxdoq6g
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-featured: true
files: build/libs/!(*-@(dev|sources|all)).jar
version-type: release
loaders: fabric quilt
- name: 📝 Sync Modrinth description from README
uses: funnyboy-roks/modrinth-auto-desc@v1.7
with:
auth-token: ${{ secrets.MODRINTH_TOKEN }}
slug: ZTxdoq6g
readme: README.md