fix: Update pack versions and streamline release workflow in devbuildโฆ #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: 32 | |
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 |