-
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (73 loc) · 2.06 KB
/
devbuild.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
# Copyright (c) 2022 Joshua Schmitt
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
name: 🎹 Development
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
name: 🐐 Build
runs-on: ubuntu-24.04
strategy:
matrix:
version: [1.16, 1.17, 1.18, 1.19, "1.20"]
include:
- version: 1.16
pack_version: 6
- version: 1.17
pack_version: 7
- version: 1.18
pack_version: 8
- version: 1.19
pack_version: 13
- version: "1.20"
pack_version: 18
steps:
- name: 🔁 Checkout
uses: actions/checkout@v4
with:
ref: 'ver/${{ matrix.version }}'
- name: 💾 Update config.json
run: echo "`jq '.pack.pack_format=${{ matrix.pack_version }}' pack.mcmeta`" > pack.mcmeta
- name: 📦 ZIP
uses: vimtor/action-zip@v1
with:
files: assets/ pack.mcmeta pack.png credits.md
dest: pack.zip
- name: 🏹 Upload
uses: actions/upload-artifact@v4
with:
name: JqshuvPack-${{ matrix.version }}.X
path: |
assets/
pack.mcmeta
pack.png
credits.md
# zip_build:
# name: "📭 Build ZIP Release"
# needs: [build]
# runs-on: ubuntu-24.04
# strategy:
# matrix:
# version: [1.16, 1.17, 1.18, 1.19, "1.20"]
# steps:
# - name: "🔽 Download Packs"
# uses: actions/download-artifact@v4
# with:
# name: JqshuvPack-${{ matrix.version }}.X
# path: temp-${{ matrix.version }}
# # - name: 📦 ZIP
# # uses: vimtor/action-zip@v1
# # with:
# # files: temp-${{ matrix.version }}/*
# # dest: JqshuvPack-${{ matrix.version }}.X.zip
# #- name: 🏹 Upload
# # uses: actions/upload-artifact@v4
# # with:
# # name: packs
# # path: JqshuvPack-${{ matrix.version }}.X.zip