From 87ff52f9934b7add89320b303bc4e7e9739c776d Mon Sep 17 00:00:00 2001 From: "D.L." <140229250+deutschich@users.noreply.github.com> Date: Tue, 13 Jan 2026 19:12:23 +0100 Subject: [PATCH 1/2] Change version from beta to alpha --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 5192135..a154d9b 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.21.11-beta-0.0.003 +alpha-0.0.002 From af24df5e2dae11a35fb423e714858e811db5b21c Mon Sep 17 00:00:00 2001 From: "D.L." <140229250+deutschich@users.noreply.github.com> Date: Tue, 13 Jan 2026 19:20:19 +0100 Subject: [PATCH 2/2] Add GitHub Actions workflow for pre-release builds --- .github/workflows/build_preview.yml | 63 +++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/build_preview.yml diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml new file mode 100644 index 0000000..165cc47 --- /dev/null +++ b/.github/workflows/build_preview.yml @@ -0,0 +1,63 @@ +name: Pre-Release CheapDesign (Preview) + +on: + push: + branches: [ "dev" ] + paths: + - "version.txt" + - "pack/**" + + workflow_dispatch: + +jobs: + prerelease: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + + # -------- VERSION -------- + - name: Read version + id: version + run: | + VERSION=$(cat version.txt | tr -d '\n') + PREVIEW_VERSION="${VERSION}-preview" + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "preview_version=$PREVIEW_VERSION" >> $GITHUB_OUTPUT + + # -------- ZIP BUILD -------- + - name: Build Java texture packs + run: | + cd pack + zip -r ../CheapDesign-${{ steps.version.outputs.preview_version }}.zip . + cd .. + cp CheapDesign-${{ steps.version.outputs.preview_version }}.zip CheapMC-${{ steps.version.outputs.preview_version }}.zip + + # -------- DELETE OLD PRE-RELEASES (KEEP 5) -------- + - name: Cleanup old pre-releases + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release list --limit 100 \ + --json tagName,isPrerelease,createdAt \ + --jq '.[] | select(.isPrerelease==true) | .tagName' \ + | tail -n +6 \ + | while read tag; do + echo "Deleting old pre-release: $tag" + gh release delete "$tag" -y + done + + # -------- GITHUB PRE-RELEASE -------- + - name: Create GitHub Pre-Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ steps.version.outputs.preview_version }} + name: CheapDesign ${{ steps.version.outputs.preview_version }} + prerelease: true + files: | + CheapDesign-${{ steps.version.outputs.preview_version }}.zip + CheapMC-${{ steps.version.outputs.preview_version }}.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}