Skip to content

Merge branch '21.1/neoforge_testing' into 21.1/neoforge_sodium_testing #593

Merge branch '21.1/neoforge_testing' into 21.1/neoforge_sodium_testing

Merge branch '21.1/neoforge_testing' into 21.1/neoforge_sodium_testing #593

Workflow file for this run

name: Package Modpack
on:
push:
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
Package-Modpack:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- run: git config user.email "${{ github.actor }}@users.noreply.github.com"
if: ${{ github.repository_owner != 'github-actions' }}
- run: git config user.name "${{ github.actor }}"
if: ${{ github.repository_owner != 'github-actions' }}
- name: Get short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Append short SHA to file content
run: |
sed -i "s/\(commitid\)/${{ env.SHORT_SHA }}/g" modrinth.index.json
sed -i "s/\(commitid\)/${{ env.SHORT_SHA }}/g" ./overrides/config/modpack-update-checker/config.json
- name: Package Modpack
run: |
rm -rf .github
rm -rf .git
rm README.md
zip -r "./MineOptimiz.zip" ./*
mv MineOptimiz.zip "MineOptimiz v3.211.1-neo_sodium+${{ env.SHORT_SHA }}.mrpack"
- uses: actions/upload-artifact@v3
with:
name: MineOptimiz v3.211.1-neo_sodium+${{ env.SHORT_SHA }}.zip
path: "./MineOptimiz v3.211.1-neo_sodium+${{ env.SHORT_SHA }}.mrpack"