-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 2.05 KB
/
ModPacker.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
name: 模組包補丁打包流程
on:
workflow_dispatch:
inputs:
modpack_version:
description: "模組包當前版本(預設為 v1.0)"
required: false
default: "v1.0"
tag:
description: "發布版本,例如 v1.0(預設為 alpha)"
required: false
default: "alpha"
per_release:
description: "預先發布版"
type: boolean
no_release:
description: "停用發布,將只會產生工作流程成品,並忽略掉發布階段"
type: boolean
jobs:
Environment-Setup:
name: 環境階段
uses: TeamKugimiya/reusable-workflows/.github/workflows/modpack-environment.yml@main
Resourcepack-Maker:
name: 資源包階段
needs: Environment-Setup
uses: TeamKugimiya/reusable-workflows/.github/workflows/modpack-resourcepack.yml@main
with:
modpack-name: ${{ needs.Environment-Setup.outputs.modpack_name }}
resourcepack-generate: ${{ needs.Environment-Setup.outputs.resourcepack_patch_generate }}
force_include_files: "LICENSE"
version: ${{ github.event.inputs.tag }}
Patch-Maker:
name: 補丁階段
if: always()
needs: [ Environment-Setup, Resourcepack-Maker ]
uses: TeamKugimiya/reusable-workflows/.github/workflows/modpack-patch.yml@main
with:
modpack-name: ${{ needs.Environment-Setup.outputs.modpack_name }}
modpack-version: ${{ github.event.inputs.tag }}
modpack-resourcepack: ${{ needs.Environment-Setup.outputs.resourcepack_patch_generate }}
Release-It:
name: 發布階段
if: always()
needs: [ Environment-Setup, Resourcepack-Maker, Patch-Maker ]
uses: TeamKugimiya/reusable-workflows/.github/workflows/modpack-release.yml@main
with:
modpack-name: ${{ needs.Environment-Setup.outputs.modpack_name }}
modpack-version: ${{ github.event.inputs.tag }}
modpack-official-version: ${{ github.event.inputs.modpack_version }}
modpack-per-release: ${{ github.event.inputs.per_release }}
modpack-release-ignore: ${{ github.event.inputs.no_release }}