From d64113846e861383bba0f003dc4fa29b4f85a70a Mon Sep 17 00:00:00 2001 From: Martin Prokoph Date: Sun, 27 Jul 2025 17:51:20 +0200 Subject: [PATCH] ci: actions to publish only select editions --- .github/workflows/publish_programmer.yml | 50 ++++++++++++++++++++++++ .github/workflows/publish_regular.yml | 50 ++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 .github/workflows/publish_programmer.yml create mode 100644 .github/workflows/publish_regular.yml diff --git a/.github/workflows/publish_programmer.yml b/.github/workflows/publish_programmer.yml new file mode 100644 index 0000000..b8cd050 --- /dev/null +++ b/.github/workflows/publish_programmer.yml @@ -0,0 +1,50 @@ +name: Build & Publish Resourcepack (only Programmer Art Edition) + +on: + workflow_dispatch: + inputs: + version: + description: 'The version name' + required: true + type: string + +jobs: + build: + runs-on: ubuntu-24.04 + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Compile Programmer Art Edition + run: python gen_pack.py -m -p ${{ inputs.version }} ยง7Programmer Edition + - name: Upload programmer art version + uses: Kir-Antipov/mc-publish@v3.3 + with: + modrinth-id: QXePegVz + modrinth-featured: true + modrinth-unfeature-mode: subset + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + + curseforge-id: 1247519 + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + + files: ./Better-Leaves-\(Programmer-Art\)-${{ inputs.version }}.zip + + name: Better Leaves (Programmer Art) ${{ inputs.version }} - 1.20+ + version: ${{ inputs.version }} + version-type: release + loaders: minecraft + changelog-file: CHANGELOG.* + + game-versions: | + >=1.20 + game-version-filter: releases + dependencies: | + cull-leaves(recommended) diff --git a/.github/workflows/publish_regular.yml b/.github/workflows/publish_regular.yml new file mode 100644 index 0000000..8048d42 --- /dev/null +++ b/.github/workflows/publish_regular.yml @@ -0,0 +1,50 @@ +name: Build & Publish Resourcepack (only Regular Edition) + +on: + workflow_dispatch: + inputs: + version: + description: 'The version name' + required: true + type: string + +jobs: + build: + runs-on: ubuntu-24.04 + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Compile Regular Edition + run: python gen_pack.py -m ${{ inputs.version }} Vanilla Edition + - name: Upload regular version + uses: Kir-Antipov/mc-publish@v3.3 + with: + modrinth-id: uvpymuxq + modrinth-featured: true + modrinth-unfeature-mode: subset + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + + curseforge-id: 380969 + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + + files: ./Better-Leaves-${{ inputs.version }}.zip + + name: Better Leaves ${{ inputs.version }} - 1.20+ + version: ${{ inputs.version }} + version-type: release + loaders: minecraft + changelog-file: CHANGELOG.* + + game-versions: | + >=1.20 + game-version-filter: releases + dependencies: | + cull-leaves(recommended)