From b42fe51098ca51a31dbe52bac9acc7ed6e4634cb Mon Sep 17 00:00:00 2001 From: "D.L." <140229250+deutschich@users.noreply.github.com> Date: Sun, 11 Jan 2026 14:32:10 +0100 Subject: [PATCH 1/4] Add GitHub Actions workflow for CheapMC release --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1d065c0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Release CheapMC + +on: + push: + branches: [ "main" ] + paths: + - "version.txt" + - "pack/**" + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Read version + id: version + run: | + VERSION=$(cat version.txt | tr -d '\n') + echo "version=$VERSION" >> $GITHUB_OUTPUT + + - name: build CheapMC + run: | + cd pack + zip -r ../CheapMC-${{ steps.version.outputs.version }}.zip . + + - name: GitHub Release erstellen + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ steps.version.outputs.version }} + name: CheapMC v${{ steps.version.outputs.version }} + files: CheapMC-${{ steps.version.outputs.version }}.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 8565c130b8cf30f22d5a48ecf6a182d705ffc68f Mon Sep 17 00:00:00 2001 From: deutschich <140229250+deutschich@users.noreply.github.com> Date: Sun, 11 Jan 2026 14:32:47 +0100 Subject: [PATCH 2/4] Added version file --- version.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 version.txt diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..92189df --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +alpha-0.0.001 From cba7ddf5d6ffd3288f9fd8d2e6d6e1cbe92aebc4 Mon Sep 17 00:00:00 2001 From: "D.L." <140229250+deutschich@users.noreply.github.com> Date: Sun, 11 Jan 2026 14:36:41 +0100 Subject: [PATCH 3/4] Update GitHub Actions workflow for release tagging --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d065c0..cc97303 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,8 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 @@ -28,8 +30,8 @@ jobs: - name: GitHub Release erstellen uses: softprops/action-gh-release@v2 with: - tag_name: v${{ steps.version.outputs.version }} - name: CheapMC v${{ steps.version.outputs.version }} + tag_name: ${{ steps.version.outputs.version }} + name: CheapMC ${{ steps.version.outputs.version }} files: CheapMC-${{ steps.version.outputs.version }}.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f6cb13686c413d61c7b45466ecc1336e66f7d795 Mon Sep 17 00:00:00 2001 From: deutschich <140229250+deutschich@users.noreply.github.com> Date: Sun, 11 Jan 2026 14:39:08 +0100 Subject: [PATCH 4/4] Edited version.txt --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 92189df..6499be9 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -alpha-0.0.001 +alpha0.0.001