-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (72 loc) · 1.96 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
# 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.20*"]
pull_request:
branches: [ "*" ]
jobs:
build:
name: Build
uses: cech12/MinecraftModActions/.github/workflows/build.yml@main
with:
java-version: 17
gametest:
needs: build
name: Game Test
uses: cech12/MinecraftModActions/.github/workflows/gametest.yml@main
with:
java-version: 17
codeql:
needs: build
name: CodeQL
uses: cech12/MinecraftModActions/.github/workflows/codeql-analysis.yml@main
with:
java-version: 17
publish-github:
needs: [ gametest, codeql ]
if: startsWith(github.ref, 'refs/tags/')
name: Publish Github
uses: cech12/MinecraftModActions/.github/workflows/publish-github.yml@main
with:
java-version: 17
mod-name: Solar Cooker
mod-id: solarcooker
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
publish-curseforge:
needs: publish-github
if: startsWith(github.ref, 'refs/tags/')
name: Publish Curseforge
uses: cech12/MinecraftModActions/.github/workflows/publish-curseforge.yml@main
with:
java-version: 17
curseforge-id: 436874
game-versions: |
1.20.1
release-type: release
loaders: |
neoforge
forge
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
publish-modrinth:
needs: publish-github
if: startsWith(github.ref, 'refs/tags/')
name: Publish Modrinth
uses: cech12/MinecraftModActions/.github/workflows/publish-modrinth.yml@main
with:
java-version: 17
modrinth-id: IsSapAeq
game-versions: |
1.20.1
release-type: release
loaders: |
neoforge
forge
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}