minetest_modding_book/.gitlab-ci.yml

34 lines
532 B
YAML
Raw Normal View History

2020-08-19 01:43:31 +03:00
image: jekyll/jekyll:4
2019-11-30 23:46:26 +03:00
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
before_script:
2020-08-19 02:12:20 +03:00
- apk add python3 py3-markdown
2020-08-19 01:43:31 +03:00
- rm Gemfile.lock
2019-11-30 23:46:26 +03:00
test:
stage: test
2020-08-19 01:43:31 +03:00
interruptible: true
2019-11-30 23:46:26 +03:00
script:
2020-08-19 02:12:20 +03:00
- python3 utils/update_lua_api.py
2020-08-19 01:43:31 +03:00
- bundle exec jekyll build -d test
2019-11-30 23:46:26 +03:00
artifacts:
paths:
2020-08-19 01:43:31 +03:00
- test
2019-11-30 23:46:26 +03:00
except:
2020-08-19 01:43:31 +03:00
- master
2019-11-30 23:46:26 +03:00
pages:
stage: deploy
2020-08-19 01:43:31 +03:00
interruptible: true
2019-11-30 23:46:26 +03:00
script:
2020-08-19 02:12:20 +03:00
- python3 utils/update_lua_api.py
2020-08-19 01:43:31 +03:00
- bundle exec jekyll build -d public
2019-11-30 23:46:26 +03:00
artifacts:
paths:
2020-08-19 01:43:31 +03:00
- public
2019-11-30 23:46:26 +03:00
only:
2020-08-19 01:43:31 +03:00
- master