Skip to content

Commit 9fd3b13

Browse files
committed
Add publishing workflows
1 parent 2c90c2a commit 9fd3b13

6 files changed

Lines changed: 86 additions & 2 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Mod Support
3+
about: Compatibility improvements with a specific mod
4+
title: 'MOD NAME HERE (url here)'
5+
labels: mod support
6+
assignees: ''
7+
8+
---

.github/workflows/assemble.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Execute Python Script
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-24.04
8+
steps:
9+
- name: Checkout Repository
10+
uses: actions/checkout@v4
11+
- name: Set current date as env variable
12+
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
13+
- name: Set up Python 3.10
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: "3.10"
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
21+
- name: Execute Python Script
22+
run: python gen_pack.py ${{ env.DATE }} §7${{ github.repository_owner }} Edition
23+
- name: Upload artifacts to GitHub
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: Round Trees Artifact
27+
path: Round-Trees-${{ env.DATE }}.zip

.github/workflows/publish.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build & Publish Resourcepack
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'The version name'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: "3.10"
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25+
- name: Compile Resourcepack
26+
run: python gen_pack.py -m ${{ inputs.version }}
27+
- name: Upload regular version
28+
uses: Kir-Antipov/mc-publish@v3.3
29+
with:
30+
modrinth-id: XlqZTP4W
31+
modrinth-featured: true
32+
modrinth-unfeature-mode: subset
33+
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
34+
35+
curseforge-id: 296616
36+
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
37+
38+
files: ./Round-Trees-${{ inputs.version }}.zip
39+
40+
name: Round Trees ${{ inputs.version }} - 1.20+
41+
version: ${{ inputs.version }}
42+
version-type: release
43+
loaders: minecraft
44+
changelog-file: CHANGELOG.*
45+
46+
game-versions: |
47+
>=1.20
48+
game-version-filter: releases

gen_pack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def makeZip(filename):
185185
epilog='Feel free to ask for help at http://discord.midnightdust.eu/')
186186

187187
parser.add_argument('version', type=str)
188-
parser.add_argument('edition', nargs="*", type=str, default="§cCustom Edition", help="Define your edition name")
188+
parser.add_argument('edition', nargs="*", type=str, default="", help="Define your edition name")
189189
parser.add_argument('--minify', '-m', action='store_true', help="Minify all JSON output files")
190190
args = parser.parse_args()
191191

pack.mcmeta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"pack": {
33
"pack_format": 15,
44
"supported_formats": [15, 99],
5-
"description": "§2Version 8.0 §a§cCustom Edition\n§e©Motschen 2025 | MIT Licence"
5+
"description": "§2Version 8.0 §a\n§e©Motschen 2025 | MIT Licence"
66
}
77
}

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
setuptools>=76.0.0

0 commit comments

Comments
 (0)