-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.37 KB
/
Modpack-Patch-Maker.yml
File metadata and controls
58 lines (49 loc) · 1.37 KB
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: 模組包 - 補丁製作
on:
workflow_call:
inputs:
modpack-version:
required: true
type: string
modpack-patch_resourcepack_maker:
required: true
type: string
jobs:
Modpack-Patcher-Maker:
name: 製作補丁
runs-on: ubuntu-latest
steps:
- name: 查看專案
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 設定 Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: 安裝 pipenv
run: |
python -m pip install --upgrade pipenv wheel
- name: 下載 reusable workflow 到資料夾
uses: actions/checkout@v4
with:
repository: TeamKugimiya/reusable-workflows
path: reusable-workflow-repo
- name: 下載補丁資源包
if: ${{ inputs.modpack-patch_resourcepack_maker == 'True' }}
uses: actions/download-artifact@v4
with:
name: Patches-Resourcepack
path: ./resourcepacks/
- name: 製作補丁
run: |
mv reusable-workflow-repo/Patch-Maker/* .
pipenv install
pipenv run patcher
env:
version: ${{ inputs.modpack-version }}
- name: 上傳補丁
uses: actions/upload-artifact@v4
with:
name: Patches-Modpack
path: "*.zip"