From 723ce813f29ea3e8dc8ce3fd6f3d28ba6c1d3d0c Mon Sep 17 00:00:00 2001 From: omo50 <144749186+omo50@users.noreply.github.com> Date: Fri, 13 Mar 2026 17:53:55 -0600 Subject: [PATCH] chore(actions): actions for datapacks --- .../workflows/dp-legacy-mechanics-publish.yml | 172 ++++++++++++++++++ .../dp-legacy-nether-extended-publish.yml | 172 ++++++++++++++++++ .../workflows/dp-legacy-nether-publish.yml | 172 ++++++++++++++++++ .../{auto-refresh.yml => mp-auto-refresh.yml} | 0 .../{auto-update.yml => mp-auto-update.yml} | 0 ...build.yml => mp-re-console-plus-build.yml} | 0 ...ish.yml => mp-re-console-plus-publish.yml} | 0 ...y-build.yml => mp-simply-legacy-build.yml} | 0 ...blish.yml => mp-simply-legacy-publish.yml} | 0 ...ish.yml => rp-faithful-legacy-publish.yml} | 0 ...=> rp-lce-panorama-collection-publish.yml} | 0 ... => rp-legacy-mechanics-addon-publish.yml} | 0 ...> rp-legacy-modpack-resources-publish.yml} | 0 ...h.yml => rp-legacy-skin-packs-publish.yml} | 0 ...blish.yml => rp-legacy-titles-publish.yml} | 0 ....yml => rp-modern-how-to-play-publish.yml} | 0 ...h.yml => rp-modern-skin-packs-publish.yml} | 0 ...-publish.yml => rp-old-l4j-ui-publish.yml} | 0 ...ore4j-publish.yml => rp-ore4j-publish.yml} | 0 ...ck-build.yml => rp-resourcepack-build.yml} | 0 ...ml => rp-tutorial-world-addon-publish.yml} | 0 ...ublish.yml => rp-vanilla-live-publish.yml} | 0 22 files changed, 516 insertions(+) create mode 100644 .forgejo/workflows/dp-legacy-mechanics-publish.yml create mode 100644 .forgejo/workflows/dp-legacy-nether-extended-publish.yml create mode 100644 .forgejo/workflows/dp-legacy-nether-publish.yml rename .forgejo/workflows/{auto-refresh.yml => mp-auto-refresh.yml} (100%) rename .forgejo/workflows/{auto-update.yml => mp-auto-update.yml} (100%) rename .forgejo/workflows/{re-console-plus-build.yml => mp-re-console-plus-build.yml} (100%) rename .forgejo/workflows/{re-console-plus-publish.yml => mp-re-console-plus-publish.yml} (100%) rename .forgejo/workflows/{simply-legacy-build.yml => mp-simply-legacy-build.yml} (100%) rename .forgejo/workflows/{simply-legacy-publish.yml => mp-simply-legacy-publish.yml} (100%) rename .forgejo/workflows/{faithful-legacy-publish.yml => rp-faithful-legacy-publish.yml} (100%) rename .forgejo/workflows/{lce-panorama-collection-publish.yml => rp-lce-panorama-collection-publish.yml} (100%) rename .forgejo/workflows/{legacy-mechanics-addon-publish.yml => rp-legacy-mechanics-addon-publish.yml} (100%) rename .forgejo/workflows/{legacy-modpack-resources-publish.yml => rp-legacy-modpack-resources-publish.yml} (100%) rename .forgejo/workflows/{legacy-skin-packs-publish.yml => rp-legacy-skin-packs-publish.yml} (100%) rename .forgejo/workflows/{legacy-titles-publish.yml => rp-legacy-titles-publish.yml} (100%) rename .forgejo/workflows/{modern-how-to-play-publish.yml => rp-modern-how-to-play-publish.yml} (100%) rename .forgejo/workflows/{modern-skin-packs-publish.yml => rp-modern-skin-packs-publish.yml} (100%) rename .forgejo/workflows/{old-l4j-ui-publish.yml => rp-old-l4j-ui-publish.yml} (100%) rename .forgejo/workflows/{ore4j-publish.yml => rp-ore4j-publish.yml} (100%) rename .forgejo/workflows/{resourcepack-build.yml => rp-resourcepack-build.yml} (100%) rename .forgejo/workflows/{tutorial-world-addon-publish.yml => rp-tutorial-world-addon-publish.yml} (100%) rename .forgejo/workflows/{vanilla-live-publish.yml => rp-vanilla-live-publish.yml} (100%) diff --git a/.forgejo/workflows/dp-legacy-mechanics-publish.yml b/.forgejo/workflows/dp-legacy-mechanics-publish.yml new file mode 100644 index 000000000..9c6d6e6fe --- /dev/null +++ b/.forgejo/workflows/dp-legacy-mechanics-publish.yml @@ -0,0 +1,172 @@ +name: Publish Legacy Mechanics + +on: + release: + types: [published] + workflow_dispatch: + inputs: + version_override: + description: 'Override version number' + required: false + type: string + +jobs: + check-tag: + runs-on: technocality + outputs: + should_run: ${{ steps.check.outputs.should_run }} + version: ${{ steps.extract.outputs.version }} + is_alpha: ${{ steps.extract.outputs.is_alpha }} + modrinth_id: ${{ steps.extract.outputs.modrinth_id }} + curseforge_id: ${{ steps.extract.outputs.curseforge_id }} + steps: + - name: Check if tag matches LM + id: check + run: | + if [ "${{ github.event_name }}" = "release" ]; then + tag="${{ github.event.release.tag_name }}" + if [[ "$tag" =~ ^LM-[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then + echo "should_run=true" >> $GITHUB_OUTPUT + else + echo "should_run=false" >> $GITHUB_OUTPUT + echo "Tag '$tag' does not match pattern 'LM-X.Y.Z'. Skipping workflow." + fi + else + echo "should_run=true" >> $GITHUB_OUTPUT + fi + + - name: Extract + id: extract + if: steps.check.outputs.should_run == 'true' + run: | + if [ "${{ github.event_name }}" = "release" ]; then + tag="${{ github.event.release.tag_name }}" + version=$(echo "$tag" | sed 's/^LM-//') + echo "version=$version" >> $GITHUB_OUTPUT + if [[ "$version" == *"-alpha"* ]]; then + echo "is_alpha=true" >> $GITHUB_OUTPUT + echo "Alpha release detected - will only publish to Forgejo" + else + echo "is_alpha=false" >> $GITHUB_OUTPUT + fi + else + echo "is_alpha=false" >> $GITHUB_OUTPUT + echo "version=dev" >> $GITHUB_OUTPUT + fi + echo "modrinth_id=legacy-mechanics" >> $GITHUB_OUTPUT + echo "curseforge_id=legacy-mechanics" >> $GITHUB_OUTPUT + + build-and-publish: + needs: check-tag + if: needs.check-tag.outputs.should_run == 'true' + runs-on: technocality + env: + PACK_FOLDER: legacy-mechanics + OUTPUT: built-datapacks + + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 1 + + - name: Set version + id: version + run: | + shortSha=$(git rev-parse --short ${{ github.sha }}) + echo "commit-sha=$shortSha" >> $GITHUB_OUTPUT + + if [ -n "${{ github.event.inputs.version_override }}" ]; then + version="${{ github.event.inputs.version_override }}" + elif [ "${{ github.event_name }}" = "release" ]; then + version="${{ needs.check-tag.outputs.version }}" + else + version="dev-$(date +%Y%m%d-%H%M%S)" + fi + + echo "version=$version" >> $GITHUB_OUTPUT + + - name: Build + run: | + mkdir -p ${{ env.OUTPUT }} + dir="./datapacks/external/${{ env.PACK_FOLDER }}" + cd "$dir" && python3 -c " + import zipfile, os + with zipfile.ZipFile('$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip', 'w', zipfile.ZIP_DEFLATED) as zf: + for root, dirs, files in os.walk('.'): + for file in files: + filepath = os.path.join(root, file) + zf.write(filepath, os.path.relpath(filepath, '.')) + " + + - name: Publish to Modrinth + if: needs.check-tag.outputs.is_alpha == 'false' + uses: https://github.com/Kir-Antipov/mc-publish@v3.3 + with: + modrinth-id: ${{ needs.check-tag.outputs.modrinth_id }} + modrinth-token: ${{ secrets.MR }} + files: ${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip + name: "Legacy Mechanics ${{ steps.version.outputs.version }}" + version: "${{ steps.version.outputs.version }}" + version-type: ${{ github.event_name == 'release' && (contains(github.event.release.tag_name, 'alpha') && 'alpha' || contains(github.event.release.tag_name, 'beta') && 'beta' || 'release') || 'alpha' }} + loaders: | + fabric + quilt + forge + neoforge + game-versions: | + 1.20.1 + 1.20.4 + 1.21.1 + 1.21.3 + 1.21.4 + 1.21.5 + 1.21.8 + 1.21.10 + changelog: ${{ github.event.release.body || format('Development build - {0}', steps.version.outputs.commit-sha) }} + retry-attempts: 3 + retry-delay: 10000 + fail-mode: warn + + - name: Publish to CurseForge + if: needs.check-tag.outputs.is_alpha == 'false' + uses: https://github.com/Kir-Antipov/mc-publish@v3.3 + with: + curseforge-id: ${{ needs.check-tag.outputs.curseforge_id }} + curseforge-token: ${{ secrets.CF }} + files: ${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip + name: "Legacy Mechanics ${{ steps.version.outputs.version }}" + version: "${{ steps.version.outputs.version }}" + version-type: ${{ github.event_name == 'release' && (contains(github.event.release.tag_name, 'alpha') && 'alpha' || contains(github.event.release.tag_name, 'beta') && 'beta' || 'release') || 'alpha' }} + loaders: | + fabric + quilt + forge + neoforge + game-versions: | + 1.20.1 + 1.20.4 + 1.21.1 + 1.21.3 + 1.21.4 + 1.21.5 + 1.21.8 + 1.21.10 + changelog: ${{ github.event.release.body || format('Development build - {0}', steps.version.outputs.commit-sha) }} + retry-attempts: 3 + retry-delay: 10000 + fail-mode: warn + + - name: Upload to Forgejo + if: github.event_name == 'release' + run: | + file=$(ls ${{ env.OUTPUT }}/*) + release_id=$(curl -s \ + -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ + "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/tags/${{ github.event.release.tag_name }}" \ + | grep -o '"id":[0-9]*' | head -1 | sed 's/"id"://') + echo "Uploading $(basename $file) to release $release_id" + curl -s -X POST \ + -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ + -H "Content-Type: application/octet-stream" \ + --data-binary @"$file" \ + "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${release_id}/assets?name=$(basename $file)" \ No newline at end of file diff --git a/.forgejo/workflows/dp-legacy-nether-extended-publish.yml b/.forgejo/workflows/dp-legacy-nether-extended-publish.yml new file mode 100644 index 000000000..bb74ad99b --- /dev/null +++ b/.forgejo/workflows/dp-legacy-nether-extended-publish.yml @@ -0,0 +1,172 @@ +name: Publish Legacy Nether Extended + +on: + release: + types: [published] + workflow_dispatch: + inputs: + version_override: + description: 'Override version number' + required: false + type: string + +jobs: + check-tag: + runs-on: technocality + outputs: + should_run: ${{ steps.check.outputs.should_run }} + version: ${{ steps.extract.outputs.version }} + is_alpha: ${{ steps.extract.outputs.is_alpha }} + modrinth_id: ${{ steps.extract.outputs.modrinth_id }} + curseforge_id: ${{ steps.extract.outputs.curseforge_id }} + steps: + - name: Check if tag matches LNE + id: check + run: | + if [ "${{ github.event_name }}" = "release" ]; then + tag="${{ github.event.release.tag_name }}" + if [[ "$tag" =~ ^LNE-[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then + echo "should_run=true" >> $GITHUB_OUTPUT + else + echo "should_run=false" >> $GITHUB_OUTPUT + echo "Tag '$tag' does not match pattern 'LNE-X.Y.Z'. Skipping workflow." + fi + else + echo "should_run=true" >> $GITHUB_OUTPUT + fi + + - name: Extract + id: extract + if: steps.check.outputs.should_run == 'true' + run: | + if [ "${{ github.event_name }}" = "release" ]; then + tag="${{ github.event.release.tag_name }}" + version=$(echo "$tag" | sed 's/^LNE-//') + echo "version=$version" >> $GITHUB_OUTPUT + if [[ "$version" == *"-alpha"* ]]; then + echo "is_alpha=true" >> $GITHUB_OUTPUT + echo "Alpha release detected - will only publish to Forgejo" + else + echo "is_alpha=false" >> $GITHUB_OUTPUT + fi + else + echo "is_alpha=false" >> $GITHUB_OUTPUT + echo "version=dev" >> $GITHUB_OUTPUT + fi + echo "modrinth_id=legacy-nether-extended" >> $GITHUB_OUTPUT + echo "curseforge_id=legacy-nether-extended" >> $GITHUB_OUTPUT + + build-and-publish: + needs: check-tag + if: needs.check-tag.outputs.should_run == 'true' + runs-on: technocality + env: + PACK_FOLDER: legacy-nether-extended + OUTPUT: built-datapacks + + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 1 + + - name: Set version + id: version + run: | + shortSha=$(git rev-parse --short ${{ github.sha }}) + echo "commit-sha=$shortSha" >> $GITHUB_OUTPUT + + if [ -n "${{ github.event.inputs.version_override }}" ]; then + version="${{ github.event.inputs.version_override }}" + elif [ "${{ github.event_name }}" = "release" ]; then + version="${{ needs.check-tag.outputs.version }}" + else + version="dev-$(date +%Y%m%d-%H%M%S)" + fi + + echo "version=$version" >> $GITHUB_OUTPUT + + - name: Build + run: | + mkdir -p ${{ env.OUTPUT }} + dir="./datapacks/external/${{ env.PACK_FOLDER }}" + cd "$dir" && python3 -c " + import zipfile, os + with zipfile.ZipFile('$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip', 'w', zipfile.ZIP_DEFLATED) as zf: + for root, dirs, files in os.walk('.'): + for file in files: + filepath = os.path.join(root, file) + zf.write(filepath, os.path.relpath(filepath, '.')) + " + + - name: Publish to Modrinth + if: needs.check-tag.outputs.is_alpha == 'false' + uses: https://github.com/Kir-Antipov/mc-publish@v3.3 + with: + modrinth-id: ${{ needs.check-tag.outputs.modrinth_id }} + modrinth-token: ${{ secrets.MR }} + files: ${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip + name: "Legacy Nether Extended ${{ steps.version.outputs.version }}" + version: "${{ steps.version.outputs.version }}" + version-type: ${{ github.event_name == 'release' && (contains(github.event.release.tag_name, 'alpha') && 'alpha' || contains(github.event.release.tag_name, 'beta') && 'beta' || 'release') || 'alpha' }} + loaders: | + fabric + quilt + forge + neoforge + game-versions: | + 1.20.1 + 1.20.4 + 1.21.1 + 1.21.3 + 1.21.4 + 1.21.5 + 1.21.8 + 1.21.10 + changelog: ${{ github.event.release.body || format('Development build - {0}', steps.version.outputs.commit-sha) }} + retry-attempts: 3 + retry-delay: 10000 + fail-mode: warn + + - name: Publish to CurseForge + if: needs.check-tag.outputs.is_alpha == 'false' + uses: https://github.com/Kir-Antipov/mc-publish@v3.3 + with: + curseforge-id: ${{ needs.check-tag.outputs.curseforge_id }} + curseforge-token: ${{ secrets.CF }} + files: ${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip + name: "Legacy Nether Extended ${{ steps.version.outputs.version }}" + version: "${{ steps.version.outputs.version }}" + version-type: ${{ github.event_name == 'release' && (contains(github.event.release.tag_name, 'alpha') && 'alpha' || contains(github.event.release.tag_name, 'beta') && 'beta' || 'release') || 'alpha' }} + loaders: | + fabric + quilt + forge + neoforge + game-versions: | + 1.20.1 + 1.20.4 + 1.21.1 + 1.21.3 + 1.21.4 + 1.21.5 + 1.21.8 + 1.21.10 + changelog: ${{ github.event.release.body || format('Development build - {0}', steps.version.outputs.commit-sha) }} + retry-attempts: 3 + retry-delay: 10000 + fail-mode: warn + + - name: Upload to Forgejo + if: github.event_name == 'release' + run: | + file=$(ls ${{ env.OUTPUT }}/*) + release_id=$(curl -s \ + -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ + "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/tags/${{ github.event.release.tag_name }}" \ + | grep -o '"id":[0-9]*' | head -1 | sed 's/"id"://') + echo "Uploading $(basename $file) to release $release_id" + curl -s -X POST \ + -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ + -H "Content-Type: application/octet-stream" \ + --data-binary @"$file" \ + "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${release_id}/assets?name=$(basename $file)" \ No newline at end of file diff --git a/.forgejo/workflows/dp-legacy-nether-publish.yml b/.forgejo/workflows/dp-legacy-nether-publish.yml new file mode 100644 index 000000000..808358e7f --- /dev/null +++ b/.forgejo/workflows/dp-legacy-nether-publish.yml @@ -0,0 +1,172 @@ +name: Publish Legacy Nether + +on: + release: + types: [published] + workflow_dispatch: + inputs: + version_override: + description: 'Override version number' + required: false + type: string + +jobs: + check-tag: + runs-on: technocality + outputs: + should_run: ${{ steps.check.outputs.should_run }} + version: ${{ steps.extract.outputs.version }} + is_alpha: ${{ steps.extract.outputs.is_alpha }} + modrinth_id: ${{ steps.extract.outputs.modrinth_id }} + curseforge_id: ${{ steps.extract.outputs.curseforge_id }} + steps: + - name: Check if tag matches LN + id: check + run: | + if [ "${{ github.event_name }}" = "release" ]; then + tag="${{ github.event.release.tag_name }}" + if [[ "$tag" =~ ^LN-[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then + echo "should_run=true" >> $GITHUB_OUTPUT + else + echo "should_run=false" >> $GITHUB_OUTPUT + echo "Tag '$tag' does not match pattern 'LN-X.Y.Z'. Skipping workflow." + fi + else + echo "should_run=true" >> $GITHUB_OUTPUT + fi + + - name: Extract + id: extract + if: steps.check.outputs.should_run == 'true' + run: | + if [ "${{ github.event_name }}" = "release" ]; then + tag="${{ github.event.release.tag_name }}" + version=$(echo "$tag" | sed 's/^LN-//') + echo "version=$version" >> $GITHUB_OUTPUT + if [[ "$version" == *"-alpha"* ]]; then + echo "is_alpha=true" >> $GITHUB_OUTPUT + echo "Alpha release detected - will only publish to Forgejo" + else + echo "is_alpha=false" >> $GITHUB_OUTPUT + fi + else + echo "is_alpha=false" >> $GITHUB_OUTPUT + echo "version=dev" >> $GITHUB_OUTPUT + fi + echo "modrinth_id=legacy-nether" >> $GITHUB_OUTPUT + echo "curseforge_id=legacy-nether" >> $GITHUB_OUTPUT + + build-and-publish: + needs: check-tag + if: needs.check-tag.outputs.should_run == 'true' + runs-on: technocality + env: + PACK_FOLDER: legacy-nether + OUTPUT: built-datapacks + + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 1 + + - name: Set version + id: version + run: | + shortSha=$(git rev-parse --short ${{ github.sha }}) + echo "commit-sha=$shortSha" >> $GITHUB_OUTPUT + + if [ -n "${{ github.event.inputs.version_override }}" ]; then + version="${{ github.event.inputs.version_override }}" + elif [ "${{ github.event_name }}" = "release" ]; then + version="${{ needs.check-tag.outputs.version }}" + else + version="dev-$(date +%Y%m%d-%H%M%S)" + fi + + echo "version=$version" >> $GITHUB_OUTPUT + + - name: Build + run: | + mkdir -p ${{ env.OUTPUT }} + dir="./datapacks/external/${{ env.PACK_FOLDER }}" + cd "$dir" && python3 -c " + import zipfile, os + with zipfile.ZipFile('$OLDPWD/${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip', 'w', zipfile.ZIP_DEFLATED) as zf: + for root, dirs, files in os.walk('.'): + for file in files: + filepath = os.path.join(root, file) + zf.write(filepath, os.path.relpath(filepath, '.')) + " + + - name: Publish to Modrinth + if: needs.check-tag.outputs.is_alpha == 'false' + uses: https://github.com/Kir-Antipov/mc-publish@v3.3 + with: + modrinth-id: ${{ needs.check-tag.outputs.modrinth_id }} + modrinth-token: ${{ secrets.MR }} + files: ${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip + name: "Legacy Nether ${{ steps.version.outputs.version }}" + version: "${{ steps.version.outputs.version }}" + version-type: ${{ github.event_name == 'release' && (contains(github.event.release.tag_name, 'alpha') && 'alpha' || contains(github.event.release.tag_name, 'beta') && 'beta' || 'release') || 'alpha' }} + loaders: | + fabric + quilt + forge + neoforge + game-versions: | + 1.20.1 + 1.20.4 + 1.21.1 + 1.21.3 + 1.21.4 + 1.21.5 + 1.21.8 + 1.21.10 + changelog: ${{ github.event.release.body || format('Development build - {0}', steps.version.outputs.commit-sha) }} + retry-attempts: 3 + retry-delay: 10000 + fail-mode: warn + + - name: Publish to CurseForge + if: needs.check-tag.outputs.is_alpha == 'false' + uses: https://github.com/Kir-Antipov/mc-publish@v3.3 + with: + curseforge-id: ${{ needs.check-tag.outputs.curseforge_id }} + curseforge-token: ${{ secrets.CF }} + files: ${{ env.OUTPUT }}/${{ env.PACK_FOLDER }}-${{ steps.version.outputs.version }}.zip + name: "Legacy Nether ${{ steps.version.outputs.version }}" + version: "${{ steps.version.outputs.version }}" + version-type: ${{ github.event_name == 'release' && (contains(github.event.release.tag_name, 'alpha') && 'alpha' || contains(github.event.release.tag_name, 'beta') && 'beta' || 'release') || 'alpha' }} + loaders: | + fabric + quilt + forge + neoforge + game-versions: | + 1.20.1 + 1.20.4 + 1.21.1 + 1.21.3 + 1.21.4 + 1.21.5 + 1.21.8 + 1.21.10 + changelog: ${{ github.event.release.body || format('Development build - {0}', steps.version.outputs.commit-sha) }} + retry-attempts: 3 + retry-delay: 10000 + fail-mode: warn + + - name: Upload to Forgejo + if: github.event_name == 'release' + run: | + file=$(ls ${{ env.OUTPUT }}/*) + release_id=$(curl -s \ + -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ + "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/tags/${{ github.event.release.tag_name }}" \ + | grep -o '"id":[0-9]*' | head -1 | sed 's/"id"://') + echo "Uploading $(basename $file) to release $release_id" + curl -s -X POST \ + -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ + -H "Content-Type: application/octet-stream" \ + --data-binary @"$file" \ + "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${release_id}/assets?name=$(basename $file)" \ No newline at end of file diff --git a/.forgejo/workflows/auto-refresh.yml b/.forgejo/workflows/mp-auto-refresh.yml similarity index 100% rename from .forgejo/workflows/auto-refresh.yml rename to .forgejo/workflows/mp-auto-refresh.yml diff --git a/.forgejo/workflows/auto-update.yml b/.forgejo/workflows/mp-auto-update.yml similarity index 100% rename from .forgejo/workflows/auto-update.yml rename to .forgejo/workflows/mp-auto-update.yml diff --git a/.forgejo/workflows/re-console-plus-build.yml b/.forgejo/workflows/mp-re-console-plus-build.yml similarity index 100% rename from .forgejo/workflows/re-console-plus-build.yml rename to .forgejo/workflows/mp-re-console-plus-build.yml diff --git a/.forgejo/workflows/re-console-plus-publish.yml b/.forgejo/workflows/mp-re-console-plus-publish.yml similarity index 100% rename from .forgejo/workflows/re-console-plus-publish.yml rename to .forgejo/workflows/mp-re-console-plus-publish.yml diff --git a/.forgejo/workflows/simply-legacy-build.yml b/.forgejo/workflows/mp-simply-legacy-build.yml similarity index 100% rename from .forgejo/workflows/simply-legacy-build.yml rename to .forgejo/workflows/mp-simply-legacy-build.yml diff --git a/.forgejo/workflows/simply-legacy-publish.yml b/.forgejo/workflows/mp-simply-legacy-publish.yml similarity index 100% rename from .forgejo/workflows/simply-legacy-publish.yml rename to .forgejo/workflows/mp-simply-legacy-publish.yml diff --git a/.forgejo/workflows/faithful-legacy-publish.yml b/.forgejo/workflows/rp-faithful-legacy-publish.yml similarity index 100% rename from .forgejo/workflows/faithful-legacy-publish.yml rename to .forgejo/workflows/rp-faithful-legacy-publish.yml diff --git a/.forgejo/workflows/lce-panorama-collection-publish.yml b/.forgejo/workflows/rp-lce-panorama-collection-publish.yml similarity index 100% rename from .forgejo/workflows/lce-panorama-collection-publish.yml rename to .forgejo/workflows/rp-lce-panorama-collection-publish.yml diff --git a/.forgejo/workflows/legacy-mechanics-addon-publish.yml b/.forgejo/workflows/rp-legacy-mechanics-addon-publish.yml similarity index 100% rename from .forgejo/workflows/legacy-mechanics-addon-publish.yml rename to .forgejo/workflows/rp-legacy-mechanics-addon-publish.yml diff --git a/.forgejo/workflows/legacy-modpack-resources-publish.yml b/.forgejo/workflows/rp-legacy-modpack-resources-publish.yml similarity index 100% rename from .forgejo/workflows/legacy-modpack-resources-publish.yml rename to .forgejo/workflows/rp-legacy-modpack-resources-publish.yml diff --git a/.forgejo/workflows/legacy-skin-packs-publish.yml b/.forgejo/workflows/rp-legacy-skin-packs-publish.yml similarity index 100% rename from .forgejo/workflows/legacy-skin-packs-publish.yml rename to .forgejo/workflows/rp-legacy-skin-packs-publish.yml diff --git a/.forgejo/workflows/legacy-titles-publish.yml b/.forgejo/workflows/rp-legacy-titles-publish.yml similarity index 100% rename from .forgejo/workflows/legacy-titles-publish.yml rename to .forgejo/workflows/rp-legacy-titles-publish.yml diff --git a/.forgejo/workflows/modern-how-to-play-publish.yml b/.forgejo/workflows/rp-modern-how-to-play-publish.yml similarity index 100% rename from .forgejo/workflows/modern-how-to-play-publish.yml rename to .forgejo/workflows/rp-modern-how-to-play-publish.yml diff --git a/.forgejo/workflows/modern-skin-packs-publish.yml b/.forgejo/workflows/rp-modern-skin-packs-publish.yml similarity index 100% rename from .forgejo/workflows/modern-skin-packs-publish.yml rename to .forgejo/workflows/rp-modern-skin-packs-publish.yml diff --git a/.forgejo/workflows/old-l4j-ui-publish.yml b/.forgejo/workflows/rp-old-l4j-ui-publish.yml similarity index 100% rename from .forgejo/workflows/old-l4j-ui-publish.yml rename to .forgejo/workflows/rp-old-l4j-ui-publish.yml diff --git a/.forgejo/workflows/ore4j-publish.yml b/.forgejo/workflows/rp-ore4j-publish.yml similarity index 100% rename from .forgejo/workflows/ore4j-publish.yml rename to .forgejo/workflows/rp-ore4j-publish.yml diff --git a/.forgejo/workflows/resourcepack-build.yml b/.forgejo/workflows/rp-resourcepack-build.yml similarity index 100% rename from .forgejo/workflows/resourcepack-build.yml rename to .forgejo/workflows/rp-resourcepack-build.yml diff --git a/.forgejo/workflows/tutorial-world-addon-publish.yml b/.forgejo/workflows/rp-tutorial-world-addon-publish.yml similarity index 100% rename from .forgejo/workflows/tutorial-world-addon-publish.yml rename to .forgejo/workflows/rp-tutorial-world-addon-publish.yml diff --git a/.forgejo/workflows/vanilla-live-publish.yml b/.forgejo/workflows/rp-vanilla-live-publish.yml similarity index 100% rename from .forgejo/workflows/vanilla-live-publish.yml rename to .forgejo/workflows/rp-vanilla-live-publish.yml