mirror of
https://github.com/TeamMidnightDust/RoundTreesPack.git
synced 2025-12-15 09:45:09 +01:00
Add publishing workflows
This commit is contained in:
8
.github/ISSUE_TEMPLATE/mod_support.md
vendored
Normal file
8
.github/ISSUE_TEMPLATE/mod_support.md
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: Mod Support
|
||||||
|
about: Compatibility improvements with a specific mod
|
||||||
|
title: 'MOD NAME HERE (url here)'
|
||||||
|
labels: mod support
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
27
.github/workflows/assemble.yml
vendored
Normal file
27
.github/workflows/assemble.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Execute Python Script
|
||||||
|
|
||||||
|
on: [ push, pull_request ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set current date as env variable
|
||||||
|
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
||||||
|
- 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: Execute Python Script
|
||||||
|
run: python gen_pack.py ${{ env.DATE }} §7${{ github.repository_owner }} Edition
|
||||||
|
- name: Upload artifacts to GitHub
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Round Trees Artifact
|
||||||
|
path: Round-Trees-${{ env.DATE }}.zip
|
||||||
48
.github/workflows/publish.yml
vendored
Normal file
48
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
name: Build & Publish Resourcepack
|
||||||
|
|
||||||
|
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 Resourcepack
|
||||||
|
run: python gen_pack.py -m ${{ inputs.version }}
|
||||||
|
- name: Upload regular version
|
||||||
|
uses: Kir-Antipov/mc-publish@v3.3
|
||||||
|
with:
|
||||||
|
modrinth-id: XlqZTP4W
|
||||||
|
modrinth-featured: true
|
||||||
|
modrinth-unfeature-mode: subset
|
||||||
|
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
|
|
||||||
|
curseforge-id: 296616
|
||||||
|
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
|
||||||
|
|
||||||
|
files: ./Round-Trees-${{ inputs.version }}.zip
|
||||||
|
|
||||||
|
name: Round Trees ${{ inputs.version }} - 1.20+
|
||||||
|
version: ${{ inputs.version }}
|
||||||
|
version-type: release
|
||||||
|
loaders: minecraft
|
||||||
|
changelog-file: CHANGELOG.*
|
||||||
|
|
||||||
|
game-versions: |
|
||||||
|
>=1.20
|
||||||
|
game-version-filter: releases
|
||||||
@@ -185,7 +185,7 @@ if __name__ == '__main__':
|
|||||||
epilog='Feel free to ask for help at http://discord.midnightdust.eu/')
|
epilog='Feel free to ask for help at http://discord.midnightdust.eu/')
|
||||||
|
|
||||||
parser.add_argument('version', type=str)
|
parser.add_argument('version', type=str)
|
||||||
parser.add_argument('edition', nargs="*", type=str, default="§cCustom Edition", help="Define your edition name")
|
parser.add_argument('edition', nargs="*", type=str, default="", help="Define your edition name")
|
||||||
parser.add_argument('--minify', '-m', action='store_true', help="Minify all JSON output files")
|
parser.add_argument('--minify', '-m', action='store_true', help="Minify all JSON output files")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 15,
|
"pack_format": 15,
|
||||||
"supported_formats": [15, 99],
|
"supported_formats": [15, 99],
|
||||||
"description": "§2Version 8.0 §a§cCustom Edition\n§e©Motschen 2025 | MIT Licence"
|
"description": "§2Version 8.0 §a\n§e©Motschen 2025 | MIT Licence"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
setuptools>=76.0.0
|
||||||
Reference in New Issue
Block a user