add mtinfo mod and workflow

master
BuckarooBanzay 2021-05-21 09:28:00 +02:00 committed by Buckaroo Banzai
parent e1a9172c6e
commit c3f605363c
5 changed files with 42 additions and 0 deletions

21
.github/workflows/mtinfo.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: mtinfo
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: generate
run: ./mtinfo.sh
- name: deploy
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /tmp/mt/worlds/world/mtinfo

3
.gitmodules vendored
View File

@ -561,3 +561,6 @@
[submodule "ice"]
path = ice
url = https://github.com/mt-mods/ice
[submodule "mtinfo"]
path = mtinfo
url = https://github.com/BuckarooBanzay/mtinfo/

1
mtinfo Submodule

@ -0,0 +1 @@
Subproject commit 9d9cd2c1a245a2bd2165462a40700fbb5230a21d

6
mtinfo-minetest.conf Normal file
View File

@ -0,0 +1,6 @@
# mtinfo related settings
mtinfo.autoshutdown = true
moreblocks.stairsplus_in_creative_inventory = false
bridger_enable_trusses = true

11
mtinfo.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# simple integration test
mkdir -p /tmp/mt/worlds/world
chmod 777 /tmp/mt -Rv
docker run --rm -i \
-v $(pwd)/mtinfo-minetest.conf:/etc/minetest/minetest.conf \
-v /tmp/mt:/var/lib/minetest/.minetest \
-v $(pwd):/var/lib/minetest/.minetest/worlds/world/worldmods \
registry.gitlab.com/minetest/minetest/server:5.4.0