29 lines
497 B
YAML
29 lines
497 B
YAML
image: python:3.7-alpine
|
|
|
|
pages:
|
|
stage: deploy
|
|
script:
|
|
- apk update && apk add make
|
|
- pip install -r requirements.txt
|
|
- make publish
|
|
- rm -rf /site-public/pelican
|
|
- cp -r public /site-public/pelican
|
|
artifacts:
|
|
paths:
|
|
- public/
|
|
only:
|
|
- master
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- apk update && apk add make
|
|
- pip install -r requirements.txt
|
|
- make publish
|
|
- rm -rf /site-public/pelican
|
|
- cp -r public /site-public/pelican
|
|
only:
|
|
- branches
|
|
except:
|
|
- master
|