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] 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 }}