-
-
Notifications
You must be signed in to change notification settings - Fork 68
79 lines (65 loc) · 2.42 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Publish Release
on:
release:
types:
- published
jobs:
build:
if: github.repository_owner == 'FlashyReese'
runs-on: self-hosted
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
check-latest: true
- name: Upload assets to releases
run: ./gradlew build publishAllPublicationsToFlashyReeseReleasesRepository -Pbuild.release
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
- name: Publish Fabric to Modrinth, CurseForge & GitHub
uses: Kir-Antipov/[email protected]
with:
modrinth-id: PtjYWJkn
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 447673
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: '[Fabric] ${{ github.event.release.name }}'
version: '${{ github.event.release.tag_name }}+fabric'
version-type: release
loaders: fabric
dependencies: |
sodium
reeses-sodium-options(optional)
irisshaders(optional)
iris(optional)
files: |
fabric/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar
fabric/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar
- name: Publish NeoForge to Modrinth, CurseForge & GitHub
uses: Kir-Antipov/[email protected]
with:
modrinth-id: PtjYWJkn
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 447673
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: '[NeoForge] ${{ github.event.release.name }}'
version: '${{ github.event.release.tag_name }}+neoforge'
version-type: release
loaders: neoforge
dependencies: |
sodium
reeses-sodium-options(optional)
irisshaders(optional)
iris(optional)
files: |
neoforge/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar
neoforge/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar