proper mtinfo workflow
parent
c1cd85d1cb
commit
c85b52f3a9
|
@ -1,4 +1,4 @@
|
|||
name: generate
|
||||
name: mtinfo
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
|
@ -11,7 +11,7 @@ jobs:
|
|||
- uses: actions/checkout@v1
|
||||
|
||||
- name: generate
|
||||
run: ./scripts/generate-site.sh
|
||||
run: ./generate-mtinfo.sh
|
||||
|
||||
- name: deploy
|
||||
if: github.ref == 'refs/heads/master'
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
# prepare config
|
||||
CONFIG=/tmp/technic_minetest.conf
|
||||
echo "mtinfo.enabled = true" > ${CONFIG}
|
||||
echo "mtinfo.autoshutdown = true" >> ${CONFIG}
|
||||
echo "moreblocks.stairsplus_in_creative_inventory = false" >> ${CONFIG}
|
||||
|
||||
# prepare dependent mods
|
||||
WORLDMODS_DIR=/tmp/epic_worldmods
|
||||
git clone --depth=1 https://github.com/BuckarooBanzay/mtinfo.git ${WORLDMODS_DIR}/mtinfo
|
||||
cp . ${WORLDMODS_DIR}/epic -R
|
||||
|
||||
# start container with mtinfo
|
||||
docker run --rm -i \
|
||||
--user root \
|
||||
-v ${CONFIG}:/etc/minetest/minetest.conf:ro \
|
||||
-v ${WORLDMODS_DIR}/:/root/.minetest/worlds/world/worldmods \
|
||||
-v $(pwd)/output:/root/.minetest/worlds/world/mtinfo \
|
||||
registry.gitlab.com/minetest/minetest/server:5.3.0
|
||||
|
||||
test -f $(pwd)/output/index.html || exit 1
|
||||
test -f $(pwd)/output/data/items.js || exit 1
|
||||
test -d $(pwd)/output/textures || exit 1
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker run --rm -i \
|
||||
--user root \
|
||||
-v $(pwd)/scripts/minetest.conf:/etc/minetest/minetest.conf:ro \
|
||||
-v $(pwd)/worldmods:/root/.minetest/worlds/world/worldmods \
|
||||
-v $(pwd)/:/root/.minetest/worlds/world/worldmods/mtinfo \
|
||||
-v $(pwd)/output:/root/.minetest/worlds/world/mtinfo \
|
||||
registry.gitlab.com/minetest/minetest/server:5.3.0
|
||||
|
||||
test -f $(pwd)/output/index.html || exit 1
|
||||
test -f $(pwd)/output/data/items.js || exit 1
|
||||
test -d $(pwd)/output/textures || exit 1
|
||||
|
||||
rm -rf app/data app/textures
|
||||
cp -R output/data app/
|
||||
cp -R output/textures app/
|
|
@ -1,5 +0,0 @@
|
|||
|
||||
# shutdown after generating
|
||||
mtinfo.autoshutdown = true
|
||||
mtinfo.enabled = true
|
||||
mtinfo.filter = epic
|
Loading…
Reference in New Issue