Ship single .mrpack release; drop CurseForge zip export
All checks were successful
Build & Release Pack / build (push) Successful in 1m42s
All checks were successful
Build & Release Pack / build (push) Successful in 1m42s
Users get one SCICRAFT-<tag>.mrpack to import into Prism Launcher. Dropping the 362MB CurseForge zip eliminates the large-upload 502 that failed release asset uploads. All 144 mods are bundled (32 CF jars in overrides) or auto-fetched from Modrinth at import.
This commit is contained in:
parent
a813e12277
commit
4eaa9758ee
1 changed files with 8 additions and 19 deletions
|
|
@ -37,23 +37,14 @@ jobs:
|
|||
|
||||
- name: Export Modrinth pack
|
||||
working-directory: client_pack
|
||||
run: packwiz modrinth export -o ../SciCraft-Modrinth.mrpack --restrictDomains=false
|
||||
run: packwiz modrinth export -o ../SCICRAFT-${GITHUB_REF_NAME}.mrpack --restrictDomains=false
|
||||
|
||||
- name: Export CurseForge pack
|
||||
working-directory: client_pack
|
||||
run: packwiz curseforge export -o ../SciCraft-CurseForge.zip
|
||||
|
||||
- name: Validate CurseForge pack completeness
|
||||
working-directory: client_pack
|
||||
run: python3 ../tools/validate_pack.py . cf ../SciCraft-CurseForge.zip
|
||||
|
||||
- name: Upload pack artifacts
|
||||
- name: Upload pack artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: scicraft-pack
|
||||
path: |
|
||||
SciCraft-Modrinth.mrpack
|
||||
SciCraft-CurseForge.zip
|
||||
SCICRAFT-${GITHUB_REF_NAME}.mrpack
|
||||
|
||||
- name: Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
|
@ -65,11 +56,9 @@ jobs:
|
|||
RELEASE_JSON=$(curl -sS -X POST "$API" \
|
||||
-H "$AUTH" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"SCICRAFT $TAG\",\"body\":\"Automated release built from Gitea Actions.\"}")
|
||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"SCICRAFT $TAG\",\"body\":\"Download the .mrpack and import it into Prism Launcher (File > Import Instance > select the file). All mods are bundled or auto-fetched.\"}")
|
||||
RELEASE_ID=$(printf '%s' "$RELEASE_JSON" | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")
|
||||
for f in SciCraft-Modrinth.mrpack SciCraft-CurseForge.zip; do
|
||||
curl -sS -X POST "$API/$RELEASE_ID/assets?name=$(basename "$f")" \
|
||||
-H "$AUTH" \
|
||||
-F "attachment=@$f"
|
||||
echo "Uploaded $f"
|
||||
done
|
||||
curl -sS -X POST "$API/$RELEASE_ID/assets?name=SCICRAFT-${TAG}.mrpack" \
|
||||
-H "$AUTH" \
|
||||
-F "attachment=@SCICRAFT-${TAG}.mrpack"
|
||||
echo "Uploaded SCICRAFT-${TAG}.mrpack"
|
||||
Loading…
Add table
Reference in a new issue