generated from TropheusJ/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 34
59 lines (48 loc) · 1.44 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
name: release
on: workflow_dispatch
jobs:
build:
strategy:
matrix:
java: [ 17 ]
runs-on: ubuntu-latest
env:
MAVEN_TYPE: releases
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
outputs:
version: ${{ steps.publish.outputs.version }}
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle
- name: publish
id: publish
# build to create artifacts for upload to GitHub, MR, and CF
# publish publishes to maven
run: ./gradlew build publish
- name: capture build artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
- name: publish to Modrinth and Curseforge
uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: tEJPA4Ty
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 696251
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-featured: false # leave it to auto featuring
loaders: |
fabric
quilt
dependencies: |
fabric-api(required){modrinth:P7dR8mSH}{curseforge:306612}