35 lines
910 B
YAML
35 lines
910 B
YAML
name: Build renameable item readme
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install Python renderer dependencies
|
|
run: python -m pip install pillow
|
|
|
|
- name: Build readme
|
|
run: python build/scripts/build_readme.py --pack-root resourcepack --output-dir build
|
|
|
|
- name: Render model previews
|
|
run: python build/scripts/render_client_items.py --manifest build/renameable-items.json --pack-root resourcepack --output-dir build
|
|
|
|
- name: Publish generated catalog artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: renameable-item-catalog
|
|
path: |
|
|
build
|
|
README.md |