-
Notifications
You must be signed in to change notification settings - Fork 3
153 lines (150 loc) · 4.31 KB
/
cicd-workflow.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# This workflow builds the project on each push and pull request and publish it on new tags
name: CI/CD
on:
workflow_dispatch:
push:
branches: [ "*" ]
tags: ["1.21*"]
pull_request:
branches: [ "*" ]
jobs:
build:
name: Build
uses: cech12/MinecraftModActions/.github/workflows/build.yml@main
with:
java-version: 21
codeql:
needs: build
name: CodeQL
uses: cech12/MinecraftModActions/.github/workflows/codeql-analysis.yml@main
with:
java-version: 21
publish-github:
needs: codeql
if: startsWith(github.ref, 'refs/tags/')
name: Publish Github
uses: cech12/MinecraftModActions/.github/workflows/multi-publish-github.yml@main
with:
java-version: 21
mod-name: Useful Hats
mod-id: usefulhats
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
publish-forge-on-curseforge:
needs: publish-github
if: startsWith(github.ref, 'refs/tags/')
name: Publish Forge on Curseforge
uses: cech12/MinecraftModActions/.github/workflows/publish-curseforge.yml@main
with:
java-version: 21
subproject: forge
title-prefix: forge-
curseforge-id: 347337
game-versions: |
1.21
release-type: release
loaders: |
forge
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
publish-forge-on-modrinth:
needs: publish-github
if: startsWith(github.ref, 'refs/tags/')
name: Publish Forge on Modrinth
uses: cech12/MinecraftModActions/.github/workflows/publish-modrinth.yml@main
with:
java-version: 21
subproject: forge
title-prefix: forge-
modrinth-id: OzlEq4Ya
game-versions: |
1.21
release-type: release
loaders: |
forge
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}
publish-neoforge-on-curseforge:
needs: publish-github
if: startsWith(github.ref, 'refs/tags/')
name: Publish Neoforge on Curseforge
uses: cech12/MinecraftModActions/.github/workflows/publish-curseforge.yml@main
with:
java-version: 21
subproject: neoforge
title-prefix: neoforge-
curseforge-id: 347337
game-versions: |
1.21
release-type: release
loaders: |
neoforge
dependencies: |
accessories(optional)
baubles-2(optional)
curios-continuation(optional)
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
publish-neoforge-on-modrinth:
needs: publish-github
if: startsWith(github.ref, 'refs/tags/')
name: Publish Neoforge on Modrinth
uses: cech12/MinecraftModActions/.github/workflows/publish-modrinth.yml@main
with:
java-version: 21
subproject: neoforge
title-prefix: neoforge-
modrinth-id: OzlEq4Ya
game-versions: |
1.21
release-type: release
loaders: |
neoforge
dependencies: |
accessories(optional)
baubles-2(optional)
curios-continuation(optional)
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}
publish-fabric-on-curseforge:
needs: publish-github
if: startsWith(github.ref, 'refs/tags/')
name: Publish Fabric on Curseforge
uses: cech12/MinecraftModActions/.github/workflows/publish-curseforge.yml@main
with:
java-version: 21
subproject: fabric
title-prefix: fabric-
curseforge-id: 347337
game-versions: |
1.21
release-type: release
loaders: |
fabric
quilt
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
publish-fabric-on-modrinth:
needs: publish-github
if: startsWith(github.ref, 'refs/tags/')
name: Publish Fabric on Modrinth
uses: cech12/MinecraftModActions/.github/workflows/publish-modrinth.yml@main
with:
java-version: 21
subproject: fabric
title-prefix: fabric-
modrinth-id: OzlEq4Ya
game-versions: |
1.21
release-type: release
loaders: |
fabric
quilt
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}