Skip to content

Commit

Permalink
Merge pull request #1 from edayot/dev
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
edayot committed Jan 8, 2023
2 parents d797801 + 15a76e6 commit a69f564
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/check-commands.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI
on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python 3.11
uses: actions/setup-python@v2
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Setup cache for dependencies
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions"
git config --global user.email "action@github.com"
poetry run semantic-release publish -v DEBUG -D commit_author="github-actions <action@github.com>"
git add beet.yaml
git add pyproject.toml
git add CHANGELOG.md
git push
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!--next-version-placeholder-->

91 changes: 91 additions & 0 deletions data/minecraft/loot_tables/blocks/yellow_shulker_box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:dynamic",
"name": "minecraft:contents",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:air"
],
"nbt": "{drop_contents:1b}"
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:yellow_shulker_box",
"functions": [
{
"function": "minecraft:copy_name",
"source": "block_entity"
},
{
"function": "minecraft:copy_nbt",
"source": "block_entity",
"ops": [
{
"source": "Lock",
"target": "BlockEntityTag.Lock",
"op": "replace"
},
{
"source": "LootTable",
"target": "BlockEntityTag.LootTable",
"op": "replace"
},
{
"source": "LootTableSeed",
"target": "BlockEntityTag.LootTableSeed",
"op": "replace"
}
]
},
{
"function": "minecraft:set_contents",
"type": "minecraft:shulker_box",
"entries": [
{
"type": "minecraft:dynamic",
"name": "minecraft:contents"
}
]
}
]
}
]
}
]
}
],
"__smithed__": {
"rules": [
{
"type": "smithed:append",
"target": "pools[0].entries",
"source": {
"type": "smithed:reference",
"path": "pools[0].entries[1]"
}
},
{
"type": "smithed:append",
"target": "pools[0].entries[0].conditions",
"source": {
"type": "smithed:reference",
"path": "pools[0].entries[0].conditions[0]"
}
}
]
}
}
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[tool.poetry]
name = "itemio"
version = "0.0.3"
description = "Item input/output lib - Easy interaction between vanilla and custom containers"
authors = ["edayot <pro.e.dayot@gmail.com>"]
license = "MIT"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
smithed-libraries = {git = "https://github.com/edayot/Libraries.git"}
python-semantic-release = "^7.32.2"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.semantic_release]
major_on_zero = false
build_command = "python -m beet -p beet-release.yaml"
dist_path = "build"
upload_to_pypi = false
upload_to_release = true
version_toml = "pyproject.toml:tool.poetry.version"
version_pattern = "beet.yaml:(\\d+\\.\\d+\\.\\d+)"
version_source = "tag"

0 comments on commit a69f564

Please sign in to comment.