2021-12-13 06:40:53 +00:00
|
|
|
---
|
|
|
|
before_script:
|
2021-12-13 07:01:37 +00:00
|
|
|
- apk add --update --no-cache python3 py3-pip
|
|
|
|
- /usr/bin/pip3 install -r requirements.txt
|
2021-12-13 06:40:53 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- mkdocs build --script --verbose --site-dir test
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- test
|
|
|
|
except:
|
|
|
|
- main
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- mkdocs build --verbose
|
2021-12-13 07:07:03 +00:00
|
|
|
- mv site public
|
2021-12-13 06:40:53 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2021-12-13 06:42:53 +00:00
|
|
|
only:
|
|
|
|
- main
|
2021-12-13 06:40:53 +00:00
|
|
|
...
|