ayakael.net/.gitlab-ci.yml

25 lines
478 B
YAML

before_script:
- sudo apk add git ikiwiki po4a perl-yaml-tiny
test:
stage: test
script:
- ikiwiki --setup ikiwiki.setup
- ln -s index.en.html public/index.html
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
tags:
- knit
pages:
stage: deploy
script:
- ikiwiki --setup ikiwiki.setup
- ln -s index.en.html public/index.html
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
tags:
- knit