mirror of
https://github.com/Nostalgica-Reverie/Content-Monorepo.git
synced 2026-05-09 00:24:15 +00:00
chore(actions): fix packsquash and build
This commit is contained in:
@@ -85,18 +85,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
cd "$dir" && python3 -c "
|
||||
import zipfile, os
|
||||
with zipfile.ZipFile('$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip', 'w', zipfile.ZIP_DEFLATED) as zf:
|
||||
for root, dirs, files in os.walk('.'):
|
||||
for file in files:
|
||||
filepath = os.path.join(root, file)
|
||||
zf.write(filepath, os.path.relpath(filepath, '.'))
|
||||
"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -97,20 +97,35 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
uses: https://github.com/Kir-Antipov/mc-publish@v3.3
|
||||
with:
|
||||
|
||||
@@ -85,18 +85,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -85,18 +85,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -85,18 +85,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -85,18 +85,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -84,18 +84,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -85,18 +85,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -90,18 +90,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -85,18 +85,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
@@ -85,18 +85,33 @@ jobs:
|
||||
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache PackSquash
|
||||
id: cache-packsquash
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/packsquash
|
||||
key: packsquash-${{ runner.os }}
|
||||
|
||||
- name: Install PackSquash
|
||||
if: steps.cache-packsquash.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
apt-get update && apt-get install -y cmake
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
$HOME/.cargo/bin/cargo +nightly install --git https://github.com/ComunidadAylas/PackSquash --bin packsquash
|
||||
|
||||
- name: Add Cargo to Path
|
||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p ${{ env.OUTPUT }}
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}/${{ matrix.subfolder }}"
|
||||
output="$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ matrix.subfolder }}-${{ steps.version.outputs.version }}.zip"
|
||||
curl -L https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-linux-x64 -o /tmp/packsquash
|
||||
chmod +x /tmp/packsquash
|
||||
dir="./resourcepacks/external/${{ env.PACK_FOLDER }}"
|
||||
output="$(pwd)/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip"
|
||||
cat > /tmp/options.toml << EOF
|
||||
pack_directory = '$dir'
|
||||
output_file_path = '$output'
|
||||
EOF
|
||||
/tmp/packsquash /tmp/options.toml
|
||||
packsquash /tmp/options.toml
|
||||
|
||||
- name: Publish to Modrinth
|
||||
if: needs.check-tag.outputs.is_alpha == 'false'
|
||||
|
||||
Reference in New Issue
Block a user