Skip to content

fix: Update artifact name in devbuild.yml and adjust zip file handling #55

fix: Update artifact name in devbuild.yml and adjust zip file handling

fix: Update artifact name in devbuild.yml and adjust zip file handling #55

Workflow file for this run

# 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 }}'
fetch-depth: 0
- name: πŸ’Ύ Update config.json
run: echo "`jq '.pack.pack_format=${{ matrix.pack_version }}' pack.mcmeta`" > pack.mcmeta
- name: Run PackSquash
uses: ComunidadAylas/PackSquash-action@v4
with:
packsquash_version: latest
artifact_name: PackTemporary-${{ matrix.version }}.X
options: |
pack_directory = '.'
output_file_path = '/tmp/pack.zip'
ignore_system_and_hidden_files = false
# - 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: PackTemporary-${{ matrix.version }}.X
path: temp-${{ matrix.version }}
- name: 🌴 Unzip
run: |
unzip temp-${{ matrix.version }}/pack.zip -d temp-${{ matrix.version }}
rm temp-${{ matrix.version }}/pack.zip
- name: List Files
run: ls -R 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