generated from neoforged/MDK
-
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (54 loc) · 1.88 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
name: "Build Release"
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+-[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
uses: MinecraftschurliMods/.github/.github/workflows/build.yml@main
with:
maven-url: ${{ vars.MAVEN_URL }}
maven-user: ${{ vars.MAVEN_USER }}
upload-artifacts: true
artifact-retention: 1
publish-to-maven: true
release-type: release
datagen-folder: src/main/generated/
secrets:
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
publish:
uses: MinecraftschurliMods/.github/.github/workflows/publish.yml@main
needs:
- build
strategy:
fail-fast: true
matrix:
platform:
- GitHub
- CurseForge
- Modrinth
with:
platform: ${{ matrix.platform }}
modid: ${{ needs.build.outputs.modid }}
version: ${{ needs.build.outputs.version }}
secrets:
GH_TOKEN: ${{ matrix.platform == 'GitHub' && secrets.GITHUB_TOKEN || null }}
CF_API_TOKEN: ${{ matrix.platform == 'CurseForge' && secrets.CF_API_TOKEN || null }}
MODRINTH_TOKEN: ${{ matrix.platform == 'Modrinth' && secrets.MODRINTH_TOKEN || null }}
notify-discord:
uses: MinecraftschurliMods/.github/.github/workflows/notify_discord.yml@main
needs:
- build
- publish
with:
project_name: "Bibliocraft Legacy"
version: ${{ needs.build.outputs.version }}
summary: ${{ needs.build.outputs.summary }}
curseforge_url: ${{ needs.publish.outputs.curseforge-url }}
modrinth_url: ${{ needs.publish.outputs.modrinth-url }}
github_url: ${{ needs.publish.outputs.github-url }}
logo_url: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/src/main/resources/logo_small.png
update_ping: "&1216425616858153062"
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}