-
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
2 changed files
with
241 additions
and
236 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 |
---|---|---|
|
@@ -105,157 +105,158 @@ jobs: | |
echo "${{ steps.changelog.outputs.description }}" >> $GITHUB_STEP_SUMMARY | ||
echo "${{ steps.lockfile.outputs.diff }}" >> $GITHUB_STEP_SUMMARY | ||
# build-modpack: | ||
# name: Build Modpack | ||
# 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: | | ||
# java -jar ./pakku.jar export | ||
|
||
# - name: Rename artifact curseforge | ||
# run: | | ||
# cd ./build/curseforge/ | ||
# mv *.zip $(basename -s .zip *.zip)-curseforge.zip | ||
build-modpack: | ||
name: Build Modpack | ||
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: | | ||
java -jar ./pakku.jar export | ||
- name: Rename artifact curseforge | ||
run: | | ||
cd ./build/curseforge/ | ||
mv *.zip $(basename -s .zip *.zip)-curseforge.zip | ||
# - name: Upload artifact CurseForge | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-curseforge | ||
# 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/ | ||
# mv *.zip $(basename -s .zip *.zip)-serverpack.zip | ||
|
||
# - name: Upload artifact server | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-serverpack | ||
# path: ./build/serverpack/${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-serverpack.zip | ||
# 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: Replace strings | ||
# 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 | ||
- name: Upload artifact CurseForge | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-curseforge | ||
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/ | ||
mv *.zip $(basename -s .zip *.zip)-serverpack.zip | ||
- name: Upload artifact server | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-serverpack | ||
path: ./build/serverpack/${{ needs.info.outputs.project_name }}-${{ needs.info.outputs.project_version }}-serverpack.zip | ||
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: Replace strings | ||
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 | ||
# - name: Move files | ||
# run: | | ||
# ls | ||
# mkdir -p .pakku/multimc-overrides/flame | ||
# mv -vf ./build/.cache/curseforge/manifest.json .pakku/multimc-overrides/flame/manifest.json | ||
# mv -vf ./build/.cache/curseforge/overrides .pakku/multimc-overrides/.minecraft | ||
# mv -vf ./mods .pakku/multimc-overrides/.minecraft/mods | ||
# cd .pakku/multimc-overrides/ | ||
- name: Move files | ||
run: | | ||
ls | ||
mkdir -p .pakku/multimc-overrides/flame | ||
mv -vf ./build/.cache/curseforge/manifest.json .pakku/multimc-overrides/flame/manifest.json | ||
mv -vf ./build/.cache/curseforge/overrides .pakku/multimc-overrides/.minecraft | ||
mv -vf ./mods .pakku/multimc-overrides/.minecraft/mods | ||
cd .pakku/multimc-overrides/ | ||
# 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 | ||
|
||
# release: | ||
# name: Release | ||
# needs: [info, build-multimc, build-server] | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
# uses: ./.github/workflows/release.yml | ||
# with: | ||
# project_name: ${{ needs.info.outputs.project_name }} | ||
# project_version: ${{ needs.info.outputs.project_version }} | ||
# mc_version: ${{ needs.info.outputs.mc_version }} | ||
# release_type: ${{ needs.info.outputs.release_type }} | ||
# changelog: ${{ needs.info.outputs.changelog }} | ||
# secrets: inherit | ||
- 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 | ||
needs: [info, build-modpack, build-server, build-multimc] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: ./.github/workflows/release.yml | ||
with: | ||
project_name: ${{ needs.info.outputs.project_name }} | ||
project_version: ${{ needs.info.outputs.project_version }} | ||
mc_version: ${{ needs.info.outputs.mc_version }} | ||
release_type: ${{ needs.info.outputs.release_type }} | ||
changelog: ${{ needs.info.outputs.changelog }} | ||
diff: ${{ needs.info.outputs.diff }} | ||
secrets: inherit |
Oops, something went wrong.