Commit d0e05ae6 authored by zauberstuhl's avatar zauberstuhl
Browse files

Merge branch 'gitlab_page' into 'master'

Add gitlab page support to repository

See merge request !6
parents 392cf5f6 221e1006
node_modules/
public/
test/
image: node:jessie
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
MARKDOWN: "node_modules/.bin/markdown"
before_script:
- npm install markdown-to-html
test:
stage: test
script:
- bash scripts/gen.sh test
artifacts:
paths:
- test
except:
- master
pages:
stage: deploy
script:
- bash scripts/gen.sh public
artifacts:
paths:
- public
only:
- master
#!/bin/bash
stage=$1;
if [ -z "$dir" ]; then
stage="test"
fi
if [ ! -x "$MARKDOWN" ]; then
echo "Run 'npm install markdown-to-html -g' first!"
exit 1;
fi
mkdir -p $stage
$MARKDOWN terms/code_of_conduct.md \
--title "Code of Conduct" > $stage/code_of_conduct.html
$MARKDOWN terms/privacy_policy.md \
--title "Privacy Policy" > $stage/privacy_policy.html
$MARKDOWN rules/feneas_rules.en.md \
--title "Feneas Rules" > $stage/feneas_rules.html
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment