-
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
3 changed files
with
54 additions
and
15 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 |
---|---|---|
|
@@ -7,6 +7,8 @@ env: | |
|
||
on: | ||
push: | ||
branches: | ||
- pakku | ||
# tags: | ||
# - "*.*.*" | ||
|
||
|
@@ -110,15 +112,14 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set GroovyScript debug mode to 'false' | ||
- name: Replace strings | ||
shell: bash | ||
run: | | ||
set +e | ||
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] | ||
|
@@ -130,7 +131,7 @@ jobs: | |
- name: Export modpack | ||
run: | | ||
java -jar ./pakku.jar --debug export | ||
java -jar ./pakku.jar export | ||
- name: Rename artifact curseforge | ||
run: | | ||
|
@@ -144,6 +145,48 @@ jobs: | |
path: ./build/curseforge/${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-curseforge.zip | ||
if-no-files-found: error | ||
|
||
- name: Rename artifact modrinth | ||
run: | | ||
cd ./build/modrinth/ | ||
mv *.mrpack $(basename -s .mrpack *.mrpack)-modrinth.mrpack | ||
- name: Upload artifact modrinth | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-modrinth | ||
path: ./build/modrinth/${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-modrinth.mrpack | ||
if-no-files-found: warn | ||
|
||
build-server: | ||
name: Build Server Pack | ||
runs-on: ubuntu-latest | ||
needs: [info] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Replace strings | ||
shell: bash | ||
run: | | ||
set +e | ||
grooovy="./groovy/runConfig.json" | ||
cat <<< $(jq '.debug = false' $grooovy) > $grooovy | ||
sed -i -e "s/DEV/${{ needs.info.outputs.project_version }}/g" pakku.json | ||
- 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 modpack | ||
run: | | ||
mv -vf ./.pakku/server-overrides/* ./ | ||
java -jar ./pakku.jar export | ||
- name: Rename artifact server | ||
run: | | ||
cd ./build/serverpack/ | ||
|
@@ -156,17 +199,6 @@ jobs: | |
path: ./build/serverpack/${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-serverpack.zip | ||
if-no-files-found: error | ||
|
||
- name: Rename artifact modrinth | ||
run: | | ||
cd ./build/modrinth/ | ||
mv *.mrpack $(basename -s .mrpack *.mrpack)-modrinth.mrpack | ||
- name: Upload artifact modrinth | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-modrinth | ||
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 | ||
|
@@ -176,7 +208,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set GroovyScript debug mode to 'false' | ||
- name: Replace strings | ||
shell: bash | ||
run: | | ||
set +e | ||
|
@@ -201,6 +233,7 @@ jobs: | |
run: | | ||
mkdir -p .pakku/multimc-overrides/flame | ||
mv -vf ./build/.cache/curseforge/* .pakku/multimc-overrides/ | ||
mv -vf ./mods* .pakku/multimc-overrides/.minecraft/mods | ||
cd .pakku/multimc-overrides/ | ||
mv -vf manifest.json flame/ | ||
|
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
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