Skip to content

Merge branch '20.1/fabric_testing' into 20.1/fabric_stable #592

Merge branch '20.1/fabric_testing' into 20.1/fabric_stable

Merge branch '20.1/fabric_testing' into 20.1/fabric_stable #592

Workflow file for this run

name: Package Modpack
on:
push:
paths-ignore:
- 'README.md'
- 'versions/*'
- 'meta.json'
- 'licenceofmods.txt'
workflow_dispatch:
jobs:
Package-Modpack:
runs-on: ubuntu-22.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\)/1/g" modrinth.index.json
sed -i "s/\(commitid\)/1/g" ./overrides/config/modpack-update-checker/config.json
- name: Package Modpack
run: |
rm -rf .github
rm -rf .git
zip -r "./MineOptimiz.zip" ./*
mv MineOptimiz.zip "MineOptimiz v3.201.4-fabric+1.mrpack"
- uses: actions/upload-artifact@v3
with:
name: MineOptimiz v3.201.4-fabric+1.zip
path: "./MineOptimiz v3.201.4-fabric+1.mrpack"