add mtinfo mod and workflow
This commit is contained in:
parent
e1a9172c6e
commit
c3f605363c
21
.github/workflows/mtinfo.yml
vendored
Normal file
21
.github/workflows/mtinfo.yml
vendored
Normal 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
3
.gitmodules
vendored
@ -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
1
mtinfo
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 9d9cd2c1a245a2bd2165462a40700fbb5230a21d
|
6
mtinfo-minetest.conf
Normal file
6
mtinfo-minetest.conf
Normal 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
11
mtinfo.sh
Executable 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user