mirror of
https://github.com/Nostalgica-Reverie/Content-Monorepo.git
synced 2026-05-09 00:24:15 +00:00
chore(ci): bump yml to match too
This commit is contained in:
@@ -75,12 +75,16 @@ jobs:
|
|||||||
src/actions/publish
|
src/actions/publish
|
||||||
src/actions/builder
|
src/actions/builder
|
||||||
tools/changelog
|
tools/changelog
|
||||||
|
tools/manifest
|
||||||
|
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
|
- name: Validate Manifest
|
||||||
|
run: npx tsx tools/manifest/validate.ts "${{ matrix.manifest }}"
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
run: npx tsx tools/changelog/generate-changelog.ts "${{ matrix.manifest }}"
|
run: npx tsx tools/changelog/generate-changelog.ts "${{ matrix.manifest }}"
|
||||||
@@ -90,7 +94,7 @@ jobs:
|
|||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./publisher-bin
|
path: ./publisher-bin
|
||||||
key: publisher-v1-${{ runner.os }}-${{ hashFiles('src/actions/publish/**/*.rs', 'src/actions/publish/Cargo.toml', 'src/actions/publish/Cargo.lock') }}
|
key: publisher-v2-${{ runner.os }}-${{ hashFiles('src/actions/publish/**/*.rs', 'src/actions/publish/Cargo.toml', 'src/actions/publish/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Cache Minify-JSON Binary
|
- name: Cache Minify-JSON Binary
|
||||||
id: cache-minify
|
id: cache-minify
|
||||||
@@ -167,14 +171,12 @@ jobs:
|
|||||||
PACK_DIR="$(dirname "$MANIFEST")"
|
PACK_DIR="$(dirname "$MANIFEST")"
|
||||||
|
|
||||||
if [[ "$MANIFEST" == datapacks/* ]]; then
|
if [[ "$MANIFEST" == datapacks/* ]]; then
|
||||||
# Datapack: minify content/
|
|
||||||
TARGET="${PACK_DIR}/content"
|
TARGET="${PACK_DIR}/content"
|
||||||
if [ -d "$TARGET" ]; then
|
if [ -d "$TARGET" ]; then
|
||||||
cp -r "$TARGET" "${TARGET}.original"
|
cp -r "$TARGET" "${TARGET}.original"
|
||||||
./builder-bin/minify-json "$TARGET"
|
./builder-bin/minify-json "$TARGET"
|
||||||
fi
|
fi
|
||||||
elif [[ "$MANIFEST" == modpacks/* ]]; then
|
elif [[ "$MANIFEST" == modpacks/* ]]; then
|
||||||
# Modpack: minify each platform subdir's config/ folder
|
|
||||||
for subdir in "$PACK_DIR"/*-mr "$PACK_DIR"/*-cf; do
|
for subdir in "$PACK_DIR"/*-mr "$PACK_DIR"/*-cf; do
|
||||||
[ -d "$subdir" ] || continue
|
[ -d "$subdir" ] || continue
|
||||||
CONFIG_DIR="$subdir/config"
|
CONFIG_DIR="$subdir/config"
|
||||||
@@ -227,6 +229,7 @@ jobs:
|
|||||||
curseforge-files: "${{ github.workspace }}/${{ steps.meta.outputs.path }}/artifacts/*.zip"
|
curseforge-files: "${{ github.workspace }}/${{ steps.meta.outputs.path }}/artifacts/*.zip"
|
||||||
name: "${{ steps.meta.outputs.name }}"
|
name: "${{ steps.meta.outputs.name }}"
|
||||||
version: "${{ steps.meta.outputs.ver }}"
|
version: "${{ steps.meta.outputs.ver }}"
|
||||||
|
version-type: ${{ steps.meta.outputs.release_type }}
|
||||||
changelog: "${{ steps.changelog.outputs.notes }}"
|
changelog: "${{ steps.changelog.outputs.notes }}"
|
||||||
loaders: ${{ steps.meta.outputs.type == 'modpack' && steps.meta.outputs.loader || 'minecraft' }}
|
loaders: ${{ steps.meta.outputs.type == 'modpack' && steps.meta.outputs.loader || 'minecraft' }}
|
||||||
game-versions: "${{ steps.meta.outputs.mc }}"
|
game-versions: "${{ steps.meta.outputs.mc }}"
|
||||||
Reference in New Issue
Block a user