forked from ilot/ilot-io
29 lines
536 B
YAML
29 lines
536 B
YAML
before_script:
|
|
- sudo apk add git ikiwiki po4a perl-yaml-tiny
|
|
- git submodule init
|
|
- git submodule update
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- ikiwiki --setup ikiwiki.setup
|
|
rules:
|
|
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
tags:
|
|
- knit
|
|
|
|
pages:
|
|
stage: deploy
|
|
script:
|
|
- ikiwiki --setup ikiwiki.setup
|
|
- echo "Pages accessible through ${CI_PAGES_URL}/${CI_COMMIT_BRANCH}"
|
|
pages:
|
|
path_prefix: "$CI_COMMIT_BRANCH"
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
tags:
|
|
- knit
|