From 8a2820fb030cd13db6272465c537acd4017721fa Mon Sep 17 00:00:00 2001 From: darksaid98 Date: Wed, 3 Jan 2024 19:31:08 +0100 Subject: [PATCH] refactor: add mc-modpack-kit template --- .github/ISSUE_TEMPLATE/bug_report.md | 38 ++++ .../ISSUE_TEMPLATE/feature-request-for-ci.md | 20 ++ .../feature-request-for-docs.md | 20 ++ .../feature-request-for-feature.md | 20 ++ .../feature-request-for-question.md | 23 +++ .github/actions/build/action.yml | 84 ++++++++ .github/actions/bump-pack/action.yml | 43 ++++ .github/actions/parse/action.yml | 53 +++++ .github/actions/release/action.yaml | 136 +++++++++++++ .github/dependabot.yml | 11 ++ .github/semantic.yml | 2 + .github/workflows/bump-version.yml | 52 +++++ .github/workflows/pipeline.yml | 185 ++++++++++++++++++ .github/workflows/update.yml | 86 ++++++++ .packwizignore => main/.packwizignore | 0 {config => main/config}/config/betterf3.json | 0 .../config}/config/betterthirdperson.json5 | 0 .../config}/config/borderlessmining.json | 0 {config => main/config}/config/capes.json5 | 0 {config => main/config}/config/citresewn.json | 0 .../config}/config/continuity.json | 0 .../config}/config/cull-less-leaves.json | 0 {config => main/config}/config/ding.conf | 0 .../config}/config/enhanced_bes.properties | 0 .../config}/config/entity_model_features.json | 0 .../config/entity_texture_features.json | 0 .../config}/config/entityculling.json | 0 {config => main/config}/config/exordium.json | 0 .../config}/config/fabrishot.properties | 0 .../config}/config/lambdynlights.toml | 0 .../config}/config/lightoverlay.properties | 0 {config => main/config}/config/puzzle.json | 0 {config => main/config}/config/replaymod.json | 0 .../config/roughlyenoughitems/config.json5 | 0 .../config}/config/shouldersurfing.toml | 0 .../config}/config/skinlayers.json | 0 .../config}/config/sodium-extra-options.json | 0 .../config}/config/sodium-options.json | 0 .../config}/config/waveycapes.json | 0 {config => main/config}/config/zoomify.json | 0 {config => main/config}/options.txt | 0 index.toml => main/index.toml | 0 {mods => main/mods}/3dskinlayers.pw.toml | 0 {mods => main/mods}/animatica.pw.toml | 0 {mods => main/mods}/appleskin.pw.toml | 0 {mods => main/mods}/architectury-api.pw.toml | 0 {mods => main/mods}/auth-me.pw.toml | 0 {mods => main/mods}/better-clouds.pw.toml | 0 {mods => main/mods}/better-mount-hud.pw.toml | 0 {mods => main/mods}/better-stats.pw.toml | 0 .../mods}/better-third-person.pw.toml | 0 {mods => main/mods}/betterf3.pw.toml | 0 {mods => main/mods}/blur-fabric.pw.toml | 0 {mods => main/mods}/borderless-mining.pw.toml | 0 {mods => main/mods}/capes.pw.toml | 0 {mods => main/mods}/cit-resewn.pw.toml | 0 {mods => main/mods}/cloth-config.pw.toml | 0 {mods => main/mods}/completeconfig.pw.toml | 0 {mods => main/mods}/continuity.pw.toml | 0 {mods => main/mods}/controlling.pw.toml | 0 {mods => main/mods}/cull-less-leaves.pw.toml | 0 {mods => main/mods}/debugify.pw.toml | 0 {mods => main/mods}/ding.pw.toml | 0 {mods => main/mods}/draggable-lists.pw.toml | 0 {mods => main/mods}/dynamic-fps.pw.toml | 0 {mods => main/mods}/ebe.pw.toml | 0 .../mods}/entity-model-features.pw.toml | 0 {mods => main/mods}/entityculling.pw.toml | 0 .../mods}/entitytexturefeatures.pw.toml | 0 {mods => main/mods}/exordium.pw.toml | 0 {mods => main/mods}/fabric-api.pw.toml | 0 .../mods}/fabric-language-kotlin.pw.toml | 0 {mods => main/mods}/fabricskyboxes.pw.toml | 0 {mods => main/mods}/fabrishot.pw.toml | 0 {mods => main/mods}/ferrite-core.pw.toml | 0 .../mods}/forge-config-api-port.pw.toml | 0 {mods => main/mods}/immediatelyfast.pw.toml | 0 {mods => main/mods}/indium.pw.toml | 0 {mods => main/mods}/iris.pw.toml | 0 {mods => main/mods}/krypton.pw.toml | 0 {mods => main/mods}/lambdynamiclights.pw.toml | 0 {mods => main/mods}/language-reload.pw.toml | 0 {mods => main/mods}/lazydfu.pw.toml | 0 {mods => main/mods}/light-overlay.pw.toml | 0 {mods => main/mods}/lithium.pw.toml | 0 {mods => main/mods}/mixintrace.pw.toml | 0 {mods => main/mods}/modelfix.pw.toml | 0 {mods => main/mods}/modernfix.pw.toml | 0 {mods => main/mods}/modmenu.pw.toml | 0 {mods => main/mods}/morechathistory.pw.toml | 0 {mods => main/mods}/norefreshscroll.pw.toml | 0 .../mods}/not-enough-animations.pw.toml | 0 {mods => main/mods}/optigui.pw.toml | 0 {mods => main/mods}/puzzle.pw.toml | 0 {mods => main/mods}/rei.pw.toml | 0 {mods => main/mods}/replaymod.pw.toml | 0 .../mods}/screenshot-to-clipboard.pw.toml | 0 {mods => main/mods}/searchables.pw.toml | 0 {mods => main/mods}/serverpingerfixer.pw.toml | 0 .../mods}/shoulder-surfing-reloaded.pw.toml | 0 {mods => main/mods}/sodium-extra.pw.toml | 0 {mods => main/mods}/sodium.pw.toml | 0 {mods => main/mods}/starlight.pw.toml | 0 {mods => main/mods}/viafabric.pw.toml | 0 {mods => main/mods}/wavey-capes.pw.toml | 0 {mods => main/mods}/yacl.pw.toml | 0 {mods => main/mods}/zoomify.pw.toml | 0 pack.toml => main/pack.toml | 0 108 files changed, 773 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request-for-ci.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request-for-docs.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request-for-feature.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request-for-question.md create mode 100644 .github/actions/build/action.yml create mode 100644 .github/actions/bump-pack/action.yml create mode 100644 .github/actions/parse/action.yml create mode 100644 .github/actions/release/action.yaml create mode 100644 .github/dependabot.yml create mode 100644 .github/semantic.yml create mode 100644 .github/workflows/bump-version.yml create mode 100644 .github/workflows/pipeline.yml create mode 100644 .github/workflows/update.yml rename .packwizignore => main/.packwizignore (100%) rename {config => main/config}/config/betterf3.json (100%) rename {config => main/config}/config/betterthirdperson.json5 (100%) rename {config => main/config}/config/borderlessmining.json (100%) rename {config => main/config}/config/capes.json5 (100%) rename {config => main/config}/config/citresewn.json (100%) rename {config => main/config}/config/continuity.json (100%) rename {config => main/config}/config/cull-less-leaves.json (100%) rename {config => main/config}/config/ding.conf (100%) rename {config => main/config}/config/enhanced_bes.properties (100%) rename {config => main/config}/config/entity_model_features.json (100%) rename {config => main/config}/config/entity_texture_features.json (100%) rename {config => main/config}/config/entityculling.json (100%) rename {config => main/config}/config/exordium.json (100%) rename {config => main/config}/config/fabrishot.properties (100%) rename {config => main/config}/config/lambdynlights.toml (100%) rename {config => main/config}/config/lightoverlay.properties (100%) rename {config => main/config}/config/puzzle.json (100%) rename {config => main/config}/config/replaymod.json (100%) rename {config => main/config}/config/roughlyenoughitems/config.json5 (100%) rename {config => main/config}/config/shouldersurfing.toml (100%) rename {config => main/config}/config/skinlayers.json (100%) rename {config => main/config}/config/sodium-extra-options.json (100%) rename {config => main/config}/config/sodium-options.json (100%) rename {config => main/config}/config/waveycapes.json (100%) rename {config => main/config}/config/zoomify.json (100%) rename {config => main/config}/options.txt (100%) rename index.toml => main/index.toml (100%) rename {mods => main/mods}/3dskinlayers.pw.toml (100%) rename {mods => main/mods}/animatica.pw.toml (100%) rename {mods => main/mods}/appleskin.pw.toml (100%) rename {mods => main/mods}/architectury-api.pw.toml (100%) rename {mods => main/mods}/auth-me.pw.toml (100%) rename {mods => main/mods}/better-clouds.pw.toml (100%) rename {mods => main/mods}/better-mount-hud.pw.toml (100%) rename {mods => main/mods}/better-stats.pw.toml (100%) rename {mods => main/mods}/better-third-person.pw.toml (100%) rename {mods => main/mods}/betterf3.pw.toml (100%) rename {mods => main/mods}/blur-fabric.pw.toml (100%) rename {mods => main/mods}/borderless-mining.pw.toml (100%) rename {mods => main/mods}/capes.pw.toml (100%) rename {mods => main/mods}/cit-resewn.pw.toml (100%) rename {mods => main/mods}/cloth-config.pw.toml (100%) rename {mods => main/mods}/completeconfig.pw.toml (100%) rename {mods => main/mods}/continuity.pw.toml (100%) rename {mods => main/mods}/controlling.pw.toml (100%) rename {mods => main/mods}/cull-less-leaves.pw.toml (100%) rename {mods => main/mods}/debugify.pw.toml (100%) rename {mods => main/mods}/ding.pw.toml (100%) rename {mods => main/mods}/draggable-lists.pw.toml (100%) rename {mods => main/mods}/dynamic-fps.pw.toml (100%) rename {mods => main/mods}/ebe.pw.toml (100%) rename {mods => main/mods}/entity-model-features.pw.toml (100%) rename {mods => main/mods}/entityculling.pw.toml (100%) rename {mods => main/mods}/entitytexturefeatures.pw.toml (100%) rename {mods => main/mods}/exordium.pw.toml (100%) rename {mods => main/mods}/fabric-api.pw.toml (100%) rename {mods => main/mods}/fabric-language-kotlin.pw.toml (100%) rename {mods => main/mods}/fabricskyboxes.pw.toml (100%) rename {mods => main/mods}/fabrishot.pw.toml (100%) rename {mods => main/mods}/ferrite-core.pw.toml (100%) rename {mods => main/mods}/forge-config-api-port.pw.toml (100%) rename {mods => main/mods}/immediatelyfast.pw.toml (100%) rename {mods => main/mods}/indium.pw.toml (100%) rename {mods => main/mods}/iris.pw.toml (100%) rename {mods => main/mods}/krypton.pw.toml (100%) rename {mods => main/mods}/lambdynamiclights.pw.toml (100%) rename {mods => main/mods}/language-reload.pw.toml (100%) rename {mods => main/mods}/lazydfu.pw.toml (100%) rename {mods => main/mods}/light-overlay.pw.toml (100%) rename {mods => main/mods}/lithium.pw.toml (100%) rename {mods => main/mods}/mixintrace.pw.toml (100%) rename {mods => main/mods}/modelfix.pw.toml (100%) rename {mods => main/mods}/modernfix.pw.toml (100%) rename {mods => main/mods}/modmenu.pw.toml (100%) rename {mods => main/mods}/morechathistory.pw.toml (100%) rename {mods => main/mods}/norefreshscroll.pw.toml (100%) rename {mods => main/mods}/not-enough-animations.pw.toml (100%) rename {mods => main/mods}/optigui.pw.toml (100%) rename {mods => main/mods}/puzzle.pw.toml (100%) rename {mods => main/mods}/rei.pw.toml (100%) rename {mods => main/mods}/replaymod.pw.toml (100%) rename {mods => main/mods}/screenshot-to-clipboard.pw.toml (100%) rename {mods => main/mods}/searchables.pw.toml (100%) rename {mods => main/mods}/serverpingerfixer.pw.toml (100%) rename {mods => main/mods}/shoulder-surfing-reloaded.pw.toml (100%) rename {mods => main/mods}/sodium-extra.pw.toml (100%) rename {mods => main/mods}/sodium.pw.toml (100%) rename {mods => main/mods}/starlight.pw.toml (100%) rename {mods => main/mods}/viafabric.pw.toml (100%) rename {mods => main/mods}/wavey-capes.pw.toml (100%) rename {mods => main/mods}/yacl.pw.toml (100%) rename {mods => main/mods}/zoomify.pw.toml (100%) rename pack.toml => main/pack.toml (100%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature-request-for-ci.md b/.github/ISSUE_TEMPLATE/feature-request-for-ci.md new file mode 100644 index 0000000..0f68ff6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request-for-ci.md @@ -0,0 +1,20 @@ +--- +name: Feature request for CI +about: Suggest an idea for this project to use in the CI actions +title: '' +labels: enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature-request-for-docs.md b/.github/ISSUE_TEMPLATE/feature-request-for-docs.md new file mode 100644 index 0000000..d1a25a0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request-for-docs.md @@ -0,0 +1,20 @@ +--- +name: Feature request for docs +about: Suggest an idea for this project to use in it's README +title: '' +labels: documentation +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature-request-for-feature.md b/.github/ISSUE_TEMPLATE/feature-request-for-feature.md new file mode 100644 index 0000000..11fc491 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request-for-feature.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature-request-for-question.md b/.github/ISSUE_TEMPLATE/feature-request-for-question.md new file mode 100644 index 0000000..b323247 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request-for-question.md @@ -0,0 +1,23 @@ +--- +name: Question +about: Ask a question about this project +title: '' +labels: question +assignees: '' + +--- + +**Describe the question** +A clear and concise description of the question. + +**Is your question related to a problem? Please describe.** +A clear and concise description of what the problem is. E.g., I'm always frustrated when [...] + +**Additional context** +Add any other context or screenshots about the feature request here. + +- [ ] Clarification needed +- [ ] Technical issue +- [ ] Conventional commits +- [ ] Problems with GitHub Actions +- [ ] Versioning diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml new file mode 100644 index 0000000..f567171 --- /dev/null +++ b/.github/actions/build/action.yml @@ -0,0 +1,84 @@ +name: 'Build Modpack Action | Action' +description: 'Uses packwiz to build the modpack!' +inputs: + release-tag: + description: "The release tag for the modpack upload" + required: true + build-modrinth: + description: "Set to 'true' to build the Modrinth .mrpack file" + required: true + build-curse: + description: "Set to 'true' to build the CurseForge .zip file" + required: true + modpack: + description: "Path to the modpack directory" + required: false + default: '.' + +runs: + using: "composite" + + steps: + + # --- Checkout the repo + - name: Check Out Git Repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: 'main' + + + # --- Install Packwiz + - name: Install packwiz + uses: supplypike/setup-bin@v3 + with: + uri: "https://nightly.link/packwiz/packwiz/workflows/go/main/Linux%2064-bit%20x86.zip" + name: "packwiz" + version: "linux" + + + # --- Build Modrinth Pack If Wanted + - name: Build Modrinth Modpack + if: inputs.build-modrinth == 'true' + run: | + packwiz modrinth export + echo "::notice ::⚙ Modpack ${{ inputs.modpack }} has been exported as .mrpack" + shell: bash + working-directory: ${{ inputs.modpack }} + + + # --- Build Curseforge Pack If Wanted + - name: Build CurseForge Modpack + if: inputs.build-curse == 'true' + run: | + packwiz curseforge export + echo "::notice ::⚙ Modpack ${{ inputs.modpack }} has been exported as .zip" + shell: bash + working-directory: ${{ inputs.modpack }} + + + # --- Upload the pack/s to releases + + - name: Upload Modrinth Modpack to GitHub Releases + if: inputs.build-modrinth == 'true' + run: | + gh release upload ${{ inputs.release-tag }} *.mrpack \ + --repo ${{ github.repository_owner }}/${{ github.event.repository.name }} \ + --clobber + echo "::notice ::☀ Modpack ${{ inputs.modpack }} has been uploaded to GitHub Releases as a .mrpack" + shell: bash + env: + GITHUB_TOKEN: ${{ github.token }} + working-directory: ${{ inputs.modpack }} + + - name: Upload CurseForge Modpack to GitHub Releases + if: inputs.build-curse == 'true' + run: | + gh release upload ${{ inputs.release-tag }} *.zip \ + --repo ${{ github.repository_owner }}/${{ github.event.repository.name }} \ + --clobber + echo "::notice ::☀ Modpack ${{ inputs.modpack }} has been uploaded to GitHub Releases as a .zip" + shell: bash + env: + GITHUB_TOKEN: ${{ github.token }} + working-directory: ${{ inputs.modpack }} diff --git a/.github/actions/bump-pack/action.yml b/.github/actions/bump-pack/action.yml new file mode 100644 index 0000000..1ba83aa --- /dev/null +++ b/.github/actions/bump-pack/action.yml @@ -0,0 +1,43 @@ +name: 'Bump Modpack Action | Action' +description: 'Bump a modpacks version' + +inputs: + release-tag: + description: 'The release tag to bump the modpack to' + required: true + modpack: + description: 'Path to the modpack directory' + required: false + default: '.' + pack-file: + description: 'Path to the pack config file' + required: false + default: 'pack.toml' + branch: + description: "Branch, where to do the bump" + required: false + default: 'main' + +runs: + using: 'composite' + + steps: + + # --- Checkout with the named branch + - name: Check Out Git Repository + uses: actions/checkout@v3 + with: + ref: ${{ inputs.branch }} + + + # --- Use sed to set the version + - name: Set the Version + run: sed -i 's/version = "[^"]*"/version = "${{ inputs.release-tag }}"/' ${{ inputs.modpack }}/${{ inputs.pack-file }} + shell: bash + + + # --- Push the version + - name: Push The Updated Version + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "chore(${{ inputs.modpack }}): bump version to ${{ inputs.release-tag }}" diff --git a/.github/actions/parse/action.yml b/.github/actions/parse/action.yml new file mode 100644 index 0000000..5c1be37 --- /dev/null +++ b/.github/actions/parse/action.yml @@ -0,0 +1,53 @@ +name: 'Parse Modpack | Action' +description: 'Parses a modpacks pack file' + +inputs: + modpack: + description: 'Path to the modpack directory' + required: false + default: '.' + pack-file: + description: 'Path to the pack config file' + required: false + default: 'pack.toml' + +outputs: + loader: + description: 'Detected mod loader' + value: ${{ steps.parse.outputs.loader }} + game-version: + description: 'Detected game version' + value: ${{ steps.parse.outputs.game-version }} + +runs: + using: 'composite' + + steps: + + # --- Checkout repo + - name: Check Out Git Repository + uses: actions/checkout@v3 + + + # --- Parse the pack.toml + # I am bored so sorry that I don't explain this, you should probably read the code? + - name: Parse the pack.toml + id: parse + run: | + loaders=("fabric" "forge" "quilt" "neoforge") + for loader in "${loaders[@]}"; do + if [[ $(<"${{ inputs.pack-file }}") == *"$loader ="* ]]; then + LOADER="$loader" && break + fi + done + + [[ -z "$LOADER" ]] && { echo "::error file=${{ inputs.pack-file }}::No match found for loaders in ${{ inputs.pack-file }}" && exit 1; } + + GAME_VERSION=$(grep -oP 'minecraft = "\K[^"]+' "${{ inputs.pack-file }}") + echo "loader=$LOADER" >> $GITHUB_ENV + echo "game-version=$GAME_VERSION" >> $GITHUB_ENV + + echo "::notice ::⚙ The detected loader for ${{ inputs.modpack }} is $LOADER" + echo "::notice ::⚙ The detected game version for ${{ inputs.modpack }} is $GAME_VERSION" + shell: bash + working-directory: ${{ inputs.modpack }} diff --git a/.github/actions/release/action.yaml b/.github/actions/release/action.yaml new file mode 100644 index 0000000..7de6e5d --- /dev/null +++ b/.github/actions/release/action.yaml @@ -0,0 +1,136 @@ +name: 'Release Modpack From A Release | Action' +description: 'This automatically downloads the newest release and description and uploads it to vendors!' +inputs: + loader: + description: "Current Modpack Loader" + required: true + game-version: + description: "Current Modpack Game Version" + required: true + upload-modrinth: + description: "Should the Modpack Be Uploaded to Modrinth" + required: true + upload-curse: + description: "Should the Modpack Be Uploaded to CurseForge" + required: true + + MODRINTH_TOKEN: + required: false + description: "Token used to uploading modpack to Modrinth" + MODRINTH_ID: + required: false + description: "ID used to uploading modpack to Modrinth" + CURSEFORGE_TOKEN: + required: false + description: "Token used to uploading modpack to Curseforge" + CURSEFORGE_ID: + required: false + description: "ID used to uploading modpack to Curseforge" + + modpack: + description: "Modpack directory" + required: false + default: . + + release-tag: + description: "Tag for the description" + required: true + + +runs: + using: "composite" + steps: + + # --- Checkout the repo + - name: Check Out Git Repository + uses: actions/checkout@v3 + + # --- Download the pack files + - name: Download the pack files + uses: robinraju/release-downloader@v1.8 + id: download-files + with: + fileName: "*" + tag: ${{ inputs.release-tag }} + tarBall: false + zipBall: false + + + # --- Get latest release description + - name: Get latest release description + uses: cardinalby/git-get-release-action@v1 + id: latest-release + env: + GITHUB_TOKEN: ${{ github.token }} + with: + tag: ${{ inputs.release-tag }} + + + # --- Set publish version-type + - name: Set publish version-type + id: release-type + run: | + if [ "${{ steps.latest-release.outputs.prerelease }}" = "true" ]; then + echo "Setting release-type to beta" + echo "release-type=beta" >> $GITHUB_OUTPUT + else + echo "Setting release-type to release" + echo "release-type=release" >> $GITHUB_OUTPUT + fi + shell: bash + + + # --- Pipe latest release description to file + - name: Pipe latest release description to file + run: echo "${{ steps.latest-release.outputs.body }}" > CHANGELOG.release.md + shell: bash + + + # --- Print status + - name: Print status + run: | + echo "::notice ::⚙ Assets from latest release ${{ steps.latest-release.outputs.tag_name }} downloaded successfully!" + echo "::notice ::⚙ Latest release ${{ steps.latest-release.outputs.tag_name }} description piped into a file successfully!" + shell: bash + + + - name: Publish to Modrinth + id: modrinth + if: inputs.upload-modrinth == 'true' + uses: Kir-Antipov/mc-publish@v3.2 + with: + modrinth-id: ${{ inputs.MODRINTH_ID }} + modrinth-token: ${{ inputs.MODRINTH_TOKEN }} + loaders: ${{ env.loader }} + game-versions: ${{ env.game-version }} + changelog-file: CHANGELOG.release.* + files: "*.mrpack" + version: ${{ steps.tag.outputs.tag }} + version-type: ${{ steps.release-type.outputs.release-type }} + + - name: Print Modrinth upload status + if: steps.modrinth.outcome == 'success' + run: | + echo "::notice ::☀ Modpack ${{ inputs.modpack }} has been uploaded to Modrinth with ${{ inputs.MODRINTH_ID }}" + shell: bash + + - name: Publish to CurseForge + id: curseforge + if: inputs.upload-curse == 'true' + uses: Kir-Antipov/mc-publish@v3.2 + with: + curseforge-id: ${{ inputs.CURSEFORGE_ID }} + curseforge-token: ${{ inputs.CURSEFORGE_TOKEN }} + loaders: ${{ env.loader }} + game-versions: ${{ env.game-version }} + changelog-file: CHANGELOG.release.* + files: "*.zip" + version: ${{ steps.tag.outputs.tag }} + version-type: ${{ steps.release-type.outputs.release-type }} + + - name: Print Curseforge upload status + if: steps.curseforge.outcome == 'success' + run: | + echo "::notice ::☀ Modpack ${{ inputs.modpack }} has been uploaded to Curseforge with ${{ inputs.CURSEFORGE_ID }}" + shell: bash + diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..92c44a8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/semantic.yml b/.github/semantic.yml new file mode 100644 index 0000000..b5161df --- /dev/null +++ b/.github/semantic.yml @@ -0,0 +1,2 @@ +enabled: true +titleOnly: true diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml new file mode 100644 index 0000000..03f56c5 --- /dev/null +++ b/.github/workflows/bump-version.yml @@ -0,0 +1,52 @@ +name: 'Bump Release Please Version | Pipeline' + +on: + workflow_dispatch: + inputs: + release-tag: + description: 'The release tag to bump the releases to' + required: false + default: '1.0.0' + type: string + modpack: + description: 'Path to the modpack directory' + required: false + default: 'main' + type: string + workflow_call: + inputs: + release-tag: + description: 'The release tag to bump the releases to' + required: false + default: '1.0.0' + type: string + +jobs: + set-version: + runs-on: ubuntu-latest + + name: Update Version + + permissions: + contents: write + + steps: + # --- Checkout the repo + - name: Check Out Git Repository + uses: actions/checkout@v4 + + # --- Get current branch + - name: Get current branch + id: branch + run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT + + # --- Set the new version + # TODO: Change to an pr + - name: Set the New Version + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_options: '--allow-empty' + skip_dirty_check: true + commit_message: | + chore(${{ steps.branch.outputs.branch }}): release ${{ inputs.release-tag }} + Release-As: ${{ inputs.release-tag }}} diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 0000000..a2e603e --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,185 @@ +name: Modpack Release | Pipeline + +on: + push: + branches: + - main + +env: + pack-file: 'pack.toml' + default-release-modrinth: 'true' + default-release-curseforge: 'false' + + +jobs: + + parse-current-modpacks: + name: Parse current modpacks to a list + + runs-on: ubuntu-latest + + permissions: + contents: read + + + outputs: + modpack-folders: ${{ steps.list-modpacks.outputs.modpack-folders }} + + steps: + + # -- Checkout repo + - name: Check Out Git Repository + uses: actions/checkout@v4 + + + # --- Parse the modpacks to and list + # This just parses the folders that have pack.toml + - name: List Modpacks + id: list-modpacks + run: | + modpackFolders=() + for folder in *; do + if [ -d "$folder" ]; then + if [ -e "$folder/${{ env.pack-file }}" ]; then + modpackFolders+=("$folder") + fi + fi + done + + echo "modpack-folders=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${modpackFolders[@]}")" >> "$GITHUB_OUTPUT" + + + # --- Print an nice msg about parsing + - name: Current detected modpacks + run: | + echo "::notice ::⚙ Current detected modpacks: ${{ steps.list-modpacks.outputs.modpack-folders }}" + + release-please: + + needs: + - parse-current-modpacks + + if: ${{ (needs.parse-current-modpacks.outputs.modpack-folders) != '[]' }} + + strategy: + fail-fast: false + matrix: + modpack: ${{ fromJson(needs.parse-current-modpacks.outputs.modpack-folders) }} + + name: Handle Releases + + runs-on: ubuntu-latest + + defaults: + run: + working-directory: ${{ matrix.modpack }} + + permissions: + contents: write + pull-requests: write + + + steps: + + # --- Release please + # Creates and manages the prs and releases + - name: Perform Release with Release Please + id: release-please + uses: google-github-actions/release-please-action@v3 + with: + monorepo-tags: true + path: ${{ matrix.modpack }} + release-type: simple + package-name: ${{ matrix.modpack }} + prerelease: true + changelog-types: > + [{"type":"feat","section":"★ Features","hidden":false}, + {"type":"fix","section":"♻ Bug Fixes","hidden":false}, + {"type":"mod","section":"☀ Modpack Changes","hidden":false}, + {"type":"update","section":"⚘ Modpack Updates","hidden":false}, + {"type":"chore","section":"⛭ Miscellaneous","hidden":true}] + + + # --- Parse version from PR Title when creating PR's + # Had to do this cause like to bump on the release pleae branch + # The tests for the shitty Regex can be found here: https://regexr.com/7lb8e + - name: Parse tag from PR title + uses: actions-ecosystem/action-regex-match@v2 + id: version + with: + text: ${{ fromJson(steps.release-please.outputs.pr).title }} + regex: '(?<=\s)(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$' + if: ${{ steps.release-please.outputs.pr != '' }} + + + # --- Checkout the git repo + # Remembed to do this AFTER release please + - name: Check Out Git Repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + + # --- Bump version + # Now we should use the parsed release to bump the version on the files on the release please branch + - name: Bump Version + uses: ./.github/actions/bump-pack + with: + release-tag: ${{ steps.version.outputs.match }} + modpack: ${{ matrix.modpack }} + branch: ${{ fromJson(steps.release-please.outputs.pr).headBranchName }} + if: ${{ steps.release-please.outputs.pr != '' }} + + + # --- Get latest tag + # Should probably be switched to use the release please tag but whatever + - name: Get Latest tag + id: tag + uses: WyriHaximus/github-action-get-previous-tag@v1 + if: ${{ steps.release-please.outputs.releases_created }} + + # --- Handle the configs + - name: Parse Pack File + id: parse + uses: ./.github/actions/parse + with: + modpack: ${{ matrix.modpack }} + if: ${{ steps.release-please.outputs.releases_created }} + + - name: Set Mod Vendors + id: set-mod-vendors + run: | + [[ ! -z "${{ secrets.CURSEFORGE_TOKEN }}" && ! -z "${{ secrets.CURSEFORGE_ID }}" ]] && echo "curseforge=true" >> $GITHUB_OUTPUT || echo "curseforge=false" >> $GITHUB_OUTPUT + [[ ! -z "${{ secrets.MODRINTH_TOKEN }}" && ! -z "${{ secrets.MODRINTH_ID }}" ]] && echo "modrinth=true" >> $GITHUB_OUTPUT || echo "modrinth=false" >> $GITHUB_OUTPUT + shell: bash + if: ${{ steps.release-please.outputs.releases_created }} + + + # --- Build an release + - name: Build Modpack + uses: ./.github/actions/build + with: + modpack: ${{ matrix.modpack }} + release-tag: ${{ steps.tag.outputs.tag }} + build-modrinth: ${{ env.default-release-modrinth }} + build-curse: ${{ env.default-release-curseforge }} + if: ${{ steps.release-please.outputs.releases_created }} + + + # --- Release + - name: Release Modpack to Vendors + uses: ./.github/actions/release + with: + modpack: ${{ matrix.modpack }} + release-tag: ${{ steps.tag.outputs.tag }} + loader: ${{ steps.parse.outputs.loader }} + game-version: ${{ steps.parse.outputs.game-version }} + upload-modrinth: ${{ steps.set-mod-vendors.outputs.modrinth }} + upload-curse: ${{ steps.set-mod-vendors.outputs.curseforge }} + MODRINTH_ID: ${{ secrets.MODRINTH_ID }} + MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + CURSEFORGE_ID: ${{ secrets.CURSEFORGE_ID }} + CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} + if: | + steps.release-please.outputs.releases_created && + (steps.set-mod-vendors.outputs.modrinth || steps.set-mod-vendors.outputs.curseforge) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..bff7e04 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,86 @@ +name: Update | Pipeline +on: + workflow_dispatch: + +jobs: + + parse-current-modpacks: + name: Parse current modpacks to a list + + runs-on: ubuntu-latest + + permissions: + contents: read + + + outputs: + modpack_folders: ${{ steps.list_modpacks.outputs.modpack_folders }} + + steps: + + - name: Check Out Git Repository + uses: actions/checkout@v4 + + + - name: List Modpacks + id: list_modpacks + run: | + modpackFolders=() + for folder in *; do + if [ -d "$folder" ]; then + if [ -e "$folder/pack.toml" ]; then + modpackFolders+=("$folder") + fi + fi + done + + echo "modpack_folders=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${modpackFolders[@]}")" >> "$GITHUB_OUTPUT" + + - name: Current detected modpacks + run: | + echo "::notice ::⚙ Current detected modpacks: ${{ steps.list_modpacks.outputs.modpack_folders }}" + + update_mods: + name: Update Mods + runs-on: ubuntu-latest + + needs: + - parse-current-modpacks + + if: ${{ (needs.parse-current-modpacks.outputs.modpack_folders) != '[]' }} + + strategy: + fail-fast: false + matrix: + modpack: ${{ fromJson(needs.parse-current-modpacks.outputs.modpack_folders) }} + + defaults: + run: + working-directory: ${{ matrix.modpack }} + + permissions: + contents: write + pull-requests: write + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Install Packwiz + uses: supplypike/setup-bin@v3 + with: + uri: 'https://nightly.link/packwiz/packwiz/workflows/go/main/Linux%2064-bit%20x86.zip' + name: 'packwiz' + version: 'linux' + + - name: Update Mods with Packwiz + run: packwiz update -a -y + + - name: Push the updated mod list via a Pull Request + uses: peter-evans/create-pull-request@v5 + with: + commit-message: "update(${{ matrix.modpack }}): updated mods" + title: 'update(${{ matrix.modpack }}): updated mods' + body: > + This PR is auto-generated by + [create-pull-request](https://github.com/peter-evans/create-pull-request). diff --git a/.packwizignore b/main/.packwizignore similarity index 100% rename from .packwizignore rename to main/.packwizignore diff --git a/config/config/betterf3.json b/main/config/config/betterf3.json similarity index 100% rename from config/config/betterf3.json rename to main/config/config/betterf3.json diff --git a/config/config/betterthirdperson.json5 b/main/config/config/betterthirdperson.json5 similarity index 100% rename from config/config/betterthirdperson.json5 rename to main/config/config/betterthirdperson.json5 diff --git a/config/config/borderlessmining.json b/main/config/config/borderlessmining.json similarity index 100% rename from config/config/borderlessmining.json rename to main/config/config/borderlessmining.json diff --git a/config/config/capes.json5 b/main/config/config/capes.json5 similarity index 100% rename from config/config/capes.json5 rename to main/config/config/capes.json5 diff --git a/config/config/citresewn.json b/main/config/config/citresewn.json similarity index 100% rename from config/config/citresewn.json rename to main/config/config/citresewn.json diff --git a/config/config/continuity.json b/main/config/config/continuity.json similarity index 100% rename from config/config/continuity.json rename to main/config/config/continuity.json diff --git a/config/config/cull-less-leaves.json b/main/config/config/cull-less-leaves.json similarity index 100% rename from config/config/cull-less-leaves.json rename to main/config/config/cull-less-leaves.json diff --git a/config/config/ding.conf b/main/config/config/ding.conf similarity index 100% rename from config/config/ding.conf rename to main/config/config/ding.conf diff --git a/config/config/enhanced_bes.properties b/main/config/config/enhanced_bes.properties similarity index 100% rename from config/config/enhanced_bes.properties rename to main/config/config/enhanced_bes.properties diff --git a/config/config/entity_model_features.json b/main/config/config/entity_model_features.json similarity index 100% rename from config/config/entity_model_features.json rename to main/config/config/entity_model_features.json diff --git a/config/config/entity_texture_features.json b/main/config/config/entity_texture_features.json similarity index 100% rename from config/config/entity_texture_features.json rename to main/config/config/entity_texture_features.json diff --git a/config/config/entityculling.json b/main/config/config/entityculling.json similarity index 100% rename from config/config/entityculling.json rename to main/config/config/entityculling.json diff --git a/config/config/exordium.json b/main/config/config/exordium.json similarity index 100% rename from config/config/exordium.json rename to main/config/config/exordium.json diff --git a/config/config/fabrishot.properties b/main/config/config/fabrishot.properties similarity index 100% rename from config/config/fabrishot.properties rename to main/config/config/fabrishot.properties diff --git a/config/config/lambdynlights.toml b/main/config/config/lambdynlights.toml similarity index 100% rename from config/config/lambdynlights.toml rename to main/config/config/lambdynlights.toml diff --git a/config/config/lightoverlay.properties b/main/config/config/lightoverlay.properties similarity index 100% rename from config/config/lightoverlay.properties rename to main/config/config/lightoverlay.properties diff --git a/config/config/puzzle.json b/main/config/config/puzzle.json similarity index 100% rename from config/config/puzzle.json rename to main/config/config/puzzle.json diff --git a/config/config/replaymod.json b/main/config/config/replaymod.json similarity index 100% rename from config/config/replaymod.json rename to main/config/config/replaymod.json diff --git a/config/config/roughlyenoughitems/config.json5 b/main/config/config/roughlyenoughitems/config.json5 similarity index 100% rename from config/config/roughlyenoughitems/config.json5 rename to main/config/config/roughlyenoughitems/config.json5 diff --git a/config/config/shouldersurfing.toml b/main/config/config/shouldersurfing.toml similarity index 100% rename from config/config/shouldersurfing.toml rename to main/config/config/shouldersurfing.toml diff --git a/config/config/skinlayers.json b/main/config/config/skinlayers.json similarity index 100% rename from config/config/skinlayers.json rename to main/config/config/skinlayers.json diff --git a/config/config/sodium-extra-options.json b/main/config/config/sodium-extra-options.json similarity index 100% rename from config/config/sodium-extra-options.json rename to main/config/config/sodium-extra-options.json diff --git a/config/config/sodium-options.json b/main/config/config/sodium-options.json similarity index 100% rename from config/config/sodium-options.json rename to main/config/config/sodium-options.json diff --git a/config/config/waveycapes.json b/main/config/config/waveycapes.json similarity index 100% rename from config/config/waveycapes.json rename to main/config/config/waveycapes.json diff --git a/config/config/zoomify.json b/main/config/config/zoomify.json similarity index 100% rename from config/config/zoomify.json rename to main/config/config/zoomify.json diff --git a/config/options.txt b/main/config/options.txt similarity index 100% rename from config/options.txt rename to main/config/options.txt diff --git a/index.toml b/main/index.toml similarity index 100% rename from index.toml rename to main/index.toml diff --git a/mods/3dskinlayers.pw.toml b/main/mods/3dskinlayers.pw.toml similarity index 100% rename from mods/3dskinlayers.pw.toml rename to main/mods/3dskinlayers.pw.toml diff --git a/mods/animatica.pw.toml b/main/mods/animatica.pw.toml similarity index 100% rename from mods/animatica.pw.toml rename to main/mods/animatica.pw.toml diff --git a/mods/appleskin.pw.toml b/main/mods/appleskin.pw.toml similarity index 100% rename from mods/appleskin.pw.toml rename to main/mods/appleskin.pw.toml diff --git a/mods/architectury-api.pw.toml b/main/mods/architectury-api.pw.toml similarity index 100% rename from mods/architectury-api.pw.toml rename to main/mods/architectury-api.pw.toml diff --git a/mods/auth-me.pw.toml b/main/mods/auth-me.pw.toml similarity index 100% rename from mods/auth-me.pw.toml rename to main/mods/auth-me.pw.toml diff --git a/mods/better-clouds.pw.toml b/main/mods/better-clouds.pw.toml similarity index 100% rename from mods/better-clouds.pw.toml rename to main/mods/better-clouds.pw.toml diff --git a/mods/better-mount-hud.pw.toml b/main/mods/better-mount-hud.pw.toml similarity index 100% rename from mods/better-mount-hud.pw.toml rename to main/mods/better-mount-hud.pw.toml diff --git a/mods/better-stats.pw.toml b/main/mods/better-stats.pw.toml similarity index 100% rename from mods/better-stats.pw.toml rename to main/mods/better-stats.pw.toml diff --git a/mods/better-third-person.pw.toml b/main/mods/better-third-person.pw.toml similarity index 100% rename from mods/better-third-person.pw.toml rename to main/mods/better-third-person.pw.toml diff --git a/mods/betterf3.pw.toml b/main/mods/betterf3.pw.toml similarity index 100% rename from mods/betterf3.pw.toml rename to main/mods/betterf3.pw.toml diff --git a/mods/blur-fabric.pw.toml b/main/mods/blur-fabric.pw.toml similarity index 100% rename from mods/blur-fabric.pw.toml rename to main/mods/blur-fabric.pw.toml diff --git a/mods/borderless-mining.pw.toml b/main/mods/borderless-mining.pw.toml similarity index 100% rename from mods/borderless-mining.pw.toml rename to main/mods/borderless-mining.pw.toml diff --git a/mods/capes.pw.toml b/main/mods/capes.pw.toml similarity index 100% rename from mods/capes.pw.toml rename to main/mods/capes.pw.toml diff --git a/mods/cit-resewn.pw.toml b/main/mods/cit-resewn.pw.toml similarity index 100% rename from mods/cit-resewn.pw.toml rename to main/mods/cit-resewn.pw.toml diff --git a/mods/cloth-config.pw.toml b/main/mods/cloth-config.pw.toml similarity index 100% rename from mods/cloth-config.pw.toml rename to main/mods/cloth-config.pw.toml diff --git a/mods/completeconfig.pw.toml b/main/mods/completeconfig.pw.toml similarity index 100% rename from mods/completeconfig.pw.toml rename to main/mods/completeconfig.pw.toml diff --git a/mods/continuity.pw.toml b/main/mods/continuity.pw.toml similarity index 100% rename from mods/continuity.pw.toml rename to main/mods/continuity.pw.toml diff --git a/mods/controlling.pw.toml b/main/mods/controlling.pw.toml similarity index 100% rename from mods/controlling.pw.toml rename to main/mods/controlling.pw.toml diff --git a/mods/cull-less-leaves.pw.toml b/main/mods/cull-less-leaves.pw.toml similarity index 100% rename from mods/cull-less-leaves.pw.toml rename to main/mods/cull-less-leaves.pw.toml diff --git a/mods/debugify.pw.toml b/main/mods/debugify.pw.toml similarity index 100% rename from mods/debugify.pw.toml rename to main/mods/debugify.pw.toml diff --git a/mods/ding.pw.toml b/main/mods/ding.pw.toml similarity index 100% rename from mods/ding.pw.toml rename to main/mods/ding.pw.toml diff --git a/mods/draggable-lists.pw.toml b/main/mods/draggable-lists.pw.toml similarity index 100% rename from mods/draggable-lists.pw.toml rename to main/mods/draggable-lists.pw.toml diff --git a/mods/dynamic-fps.pw.toml b/main/mods/dynamic-fps.pw.toml similarity index 100% rename from mods/dynamic-fps.pw.toml rename to main/mods/dynamic-fps.pw.toml diff --git a/mods/ebe.pw.toml b/main/mods/ebe.pw.toml similarity index 100% rename from mods/ebe.pw.toml rename to main/mods/ebe.pw.toml diff --git a/mods/entity-model-features.pw.toml b/main/mods/entity-model-features.pw.toml similarity index 100% rename from mods/entity-model-features.pw.toml rename to main/mods/entity-model-features.pw.toml diff --git a/mods/entityculling.pw.toml b/main/mods/entityculling.pw.toml similarity index 100% rename from mods/entityculling.pw.toml rename to main/mods/entityculling.pw.toml diff --git a/mods/entitytexturefeatures.pw.toml b/main/mods/entitytexturefeatures.pw.toml similarity index 100% rename from mods/entitytexturefeatures.pw.toml rename to main/mods/entitytexturefeatures.pw.toml diff --git a/mods/exordium.pw.toml b/main/mods/exordium.pw.toml similarity index 100% rename from mods/exordium.pw.toml rename to main/mods/exordium.pw.toml diff --git a/mods/fabric-api.pw.toml b/main/mods/fabric-api.pw.toml similarity index 100% rename from mods/fabric-api.pw.toml rename to main/mods/fabric-api.pw.toml diff --git a/mods/fabric-language-kotlin.pw.toml b/main/mods/fabric-language-kotlin.pw.toml similarity index 100% rename from mods/fabric-language-kotlin.pw.toml rename to main/mods/fabric-language-kotlin.pw.toml diff --git a/mods/fabricskyboxes.pw.toml b/main/mods/fabricskyboxes.pw.toml similarity index 100% rename from mods/fabricskyboxes.pw.toml rename to main/mods/fabricskyboxes.pw.toml diff --git a/mods/fabrishot.pw.toml b/main/mods/fabrishot.pw.toml similarity index 100% rename from mods/fabrishot.pw.toml rename to main/mods/fabrishot.pw.toml diff --git a/mods/ferrite-core.pw.toml b/main/mods/ferrite-core.pw.toml similarity index 100% rename from mods/ferrite-core.pw.toml rename to main/mods/ferrite-core.pw.toml diff --git a/mods/forge-config-api-port.pw.toml b/main/mods/forge-config-api-port.pw.toml similarity index 100% rename from mods/forge-config-api-port.pw.toml rename to main/mods/forge-config-api-port.pw.toml diff --git a/mods/immediatelyfast.pw.toml b/main/mods/immediatelyfast.pw.toml similarity index 100% rename from mods/immediatelyfast.pw.toml rename to main/mods/immediatelyfast.pw.toml diff --git a/mods/indium.pw.toml b/main/mods/indium.pw.toml similarity index 100% rename from mods/indium.pw.toml rename to main/mods/indium.pw.toml diff --git a/mods/iris.pw.toml b/main/mods/iris.pw.toml similarity index 100% rename from mods/iris.pw.toml rename to main/mods/iris.pw.toml diff --git a/mods/krypton.pw.toml b/main/mods/krypton.pw.toml similarity index 100% rename from mods/krypton.pw.toml rename to main/mods/krypton.pw.toml diff --git a/mods/lambdynamiclights.pw.toml b/main/mods/lambdynamiclights.pw.toml similarity index 100% rename from mods/lambdynamiclights.pw.toml rename to main/mods/lambdynamiclights.pw.toml diff --git a/mods/language-reload.pw.toml b/main/mods/language-reload.pw.toml similarity index 100% rename from mods/language-reload.pw.toml rename to main/mods/language-reload.pw.toml diff --git a/mods/lazydfu.pw.toml b/main/mods/lazydfu.pw.toml similarity index 100% rename from mods/lazydfu.pw.toml rename to main/mods/lazydfu.pw.toml diff --git a/mods/light-overlay.pw.toml b/main/mods/light-overlay.pw.toml similarity index 100% rename from mods/light-overlay.pw.toml rename to main/mods/light-overlay.pw.toml diff --git a/mods/lithium.pw.toml b/main/mods/lithium.pw.toml similarity index 100% rename from mods/lithium.pw.toml rename to main/mods/lithium.pw.toml diff --git a/mods/mixintrace.pw.toml b/main/mods/mixintrace.pw.toml similarity index 100% rename from mods/mixintrace.pw.toml rename to main/mods/mixintrace.pw.toml diff --git a/mods/modelfix.pw.toml b/main/mods/modelfix.pw.toml similarity index 100% rename from mods/modelfix.pw.toml rename to main/mods/modelfix.pw.toml diff --git a/mods/modernfix.pw.toml b/main/mods/modernfix.pw.toml similarity index 100% rename from mods/modernfix.pw.toml rename to main/mods/modernfix.pw.toml diff --git a/mods/modmenu.pw.toml b/main/mods/modmenu.pw.toml similarity index 100% rename from mods/modmenu.pw.toml rename to main/mods/modmenu.pw.toml diff --git a/mods/morechathistory.pw.toml b/main/mods/morechathistory.pw.toml similarity index 100% rename from mods/morechathistory.pw.toml rename to main/mods/morechathistory.pw.toml diff --git a/mods/norefreshscroll.pw.toml b/main/mods/norefreshscroll.pw.toml similarity index 100% rename from mods/norefreshscroll.pw.toml rename to main/mods/norefreshscroll.pw.toml diff --git a/mods/not-enough-animations.pw.toml b/main/mods/not-enough-animations.pw.toml similarity index 100% rename from mods/not-enough-animations.pw.toml rename to main/mods/not-enough-animations.pw.toml diff --git a/mods/optigui.pw.toml b/main/mods/optigui.pw.toml similarity index 100% rename from mods/optigui.pw.toml rename to main/mods/optigui.pw.toml diff --git a/mods/puzzle.pw.toml b/main/mods/puzzle.pw.toml similarity index 100% rename from mods/puzzle.pw.toml rename to main/mods/puzzle.pw.toml diff --git a/mods/rei.pw.toml b/main/mods/rei.pw.toml similarity index 100% rename from mods/rei.pw.toml rename to main/mods/rei.pw.toml diff --git a/mods/replaymod.pw.toml b/main/mods/replaymod.pw.toml similarity index 100% rename from mods/replaymod.pw.toml rename to main/mods/replaymod.pw.toml diff --git a/mods/screenshot-to-clipboard.pw.toml b/main/mods/screenshot-to-clipboard.pw.toml similarity index 100% rename from mods/screenshot-to-clipboard.pw.toml rename to main/mods/screenshot-to-clipboard.pw.toml diff --git a/mods/searchables.pw.toml b/main/mods/searchables.pw.toml similarity index 100% rename from mods/searchables.pw.toml rename to main/mods/searchables.pw.toml diff --git a/mods/serverpingerfixer.pw.toml b/main/mods/serverpingerfixer.pw.toml similarity index 100% rename from mods/serverpingerfixer.pw.toml rename to main/mods/serverpingerfixer.pw.toml diff --git a/mods/shoulder-surfing-reloaded.pw.toml b/main/mods/shoulder-surfing-reloaded.pw.toml similarity index 100% rename from mods/shoulder-surfing-reloaded.pw.toml rename to main/mods/shoulder-surfing-reloaded.pw.toml diff --git a/mods/sodium-extra.pw.toml b/main/mods/sodium-extra.pw.toml similarity index 100% rename from mods/sodium-extra.pw.toml rename to main/mods/sodium-extra.pw.toml diff --git a/mods/sodium.pw.toml b/main/mods/sodium.pw.toml similarity index 100% rename from mods/sodium.pw.toml rename to main/mods/sodium.pw.toml diff --git a/mods/starlight.pw.toml b/main/mods/starlight.pw.toml similarity index 100% rename from mods/starlight.pw.toml rename to main/mods/starlight.pw.toml diff --git a/mods/viafabric.pw.toml b/main/mods/viafabric.pw.toml similarity index 100% rename from mods/viafabric.pw.toml rename to main/mods/viafabric.pw.toml diff --git a/mods/wavey-capes.pw.toml b/main/mods/wavey-capes.pw.toml similarity index 100% rename from mods/wavey-capes.pw.toml rename to main/mods/wavey-capes.pw.toml diff --git a/mods/yacl.pw.toml b/main/mods/yacl.pw.toml similarity index 100% rename from mods/yacl.pw.toml rename to main/mods/yacl.pw.toml diff --git a/mods/zoomify.pw.toml b/main/mods/zoomify.pw.toml similarity index 100% rename from mods/zoomify.pw.toml rename to main/mods/zoomify.pw.toml diff --git a/pack.toml b/main/pack.toml similarity index 100% rename from pack.toml rename to main/pack.toml