-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,7 @@ jobs: | |
grooovy="./groovy/runConfig.json" | ||
cat <<< $(jq '.debug = false' $grooovy) > $grooovy | ||
sed -i -e "s/DEV/${{ needs.info.outputs.project_version }}/g" pakku.json | ||
mv -vf ./.pakku/server-overrides/* ./ | ||
- name: Cache pakku | ||
uses: actions/[email protected] | ||
|
@@ -134,10 +135,7 @@ jobs: | |
- name: Rename artifact curseforge | ||
run: | | ||
cd ./build/curseforge/ | ||
ls | ||
mv *.zip $(basename -s .zip *.zip)-curseforge.zip | ||
- run: ls -R | ||
- name: Upload artifact CurseForge | ||
uses: actions/[email protected] | ||
|
@@ -149,7 +147,6 @@ jobs: | |
- name: Rename artifact server | ||
run: | | ||
cd ./build/serverpack/ | ||
ls | ||
mv *.zip $(basename -s .zip *.zip)-serverpack.zip | ||
- name: Upload artifact server | ||
|
@@ -162,7 +159,6 @@ jobs: | |
- name: Rename artifact modrinth | ||
run: | | ||
cd ./build/modrinth/ | ||
ls | ||
mv *.mrpack $(basename -s .mrpack *.mrpack)-modrinth.mrpack | ||
- name: Upload artifact modrinth | ||
|
@@ -172,53 +168,50 @@ jobs: | |
path: ./build/modrinth/${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-modrinth.mrpack | ||
if-no-files-found: error | ||
|
||
# build-multimc: | ||
# name: Build MultiMC Pack | ||
# runs-on: ubuntu-latest | ||
# needs: [info] | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/[email protected] | ||
|
||
# - name: Set GroovyScript debug mode to 'false' | ||
# shell: bash | ||
# run: | | ||
# set +e | ||
|
||
# grooovy="./groovy/runConfig.json" | ||
# cat <<< $(jq '.debug = false' $grooovy) > $grooovy | ||
|
||
# - name: Cache pakku | ||
# uses: actions/[email protected] | ||
# with: | ||
# path: build/.cache | ||
# key: ${{ runner.OS }}-pakku-cache-${{ hashFiles('build/.cache/') }} | ||
# restore-keys: | | ||
# ${{ runner.OS }}-pakku-cache- | ||
|
||
# - name: Export | ||
# run: | | ||
# java -jar pakku.jar --debug export | ||
# java -jar pakku.jar --debug fetch | ||
|
||
# - name: Move files | ||
# run: | | ||
# mv -vf ./build/.cache/curseforge/* ./.pakku/multimc-overrides/ | ||
# cd ./.pakku/multimc-overrides/ | ||
# mkdir -p flame | ||
build-multimc: | ||
name: Build MultiMC Pack | ||
runs-on: ubuntu-latest | ||
needs: [info] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set GroovyScript debug mode to 'false' | ||
shell: bash | ||
run: | | ||
set +e | ||
grooovy="./groovy/runConfig.json" | ||
cat <<< $(jq '.debug = false' $grooovy) > $grooovy | ||
- name: Cache pakku | ||
uses: actions/[email protected] | ||
with: | ||
path: build/.cache | ||
key: ${{ runner.OS }}-pakku-cache-${{ hashFiles('build/.cache/') }} | ||
restore-keys: | | ||
${{ runner.OS }}-pakku-cache- | ||
- name: Export | ||
run: | | ||
java -jar pakku.jar --debug fetch | ||
java -jar pakku.jar --debug export | ||
# # mv -vf manifest.json flame/ | ||
# cd ./.pakku/multimc-overrides/ | ||
- name: Move files | ||
run: | | ||
mkdir -p .pakku/multimc-overrides/flame | ||
mv -vf ./build/.cache/curseforge/* .pakku/multimc-overrides/ | ||
cd .pakku/multimc-overrides/ | ||
mv -vf manifest.json flame/ | ||
# zip -r ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-multimc.zip icon.png mmc-pack.json instance.cfg .minecraft/ flame/ | ||
zip -r ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-multimc.zip icon.png mmc-pack.json instance.cfg .minecraft/ flame/ | ||
# - name: Upload zip multimc | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-multimc | ||
# path: ./.pakku/multimc-overrides/${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-multimc.zip | ||
# if-no-files-found: error | ||
- name: Upload zip multimc | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-multimc | ||
path: .pakku/multimc-overrides/${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-multimc.zip | ||
if-no-files-found: error | ||
|
||
# release: | ||
# name: Release | ||
|