.gitlab-ci.yml
ASCII text
1
image: busybox:latest
2
3
build:
4
stage: build
5
image: python:latest
6
script:
7
- python3 -m pip install -r requirements.txt
8
- python3 build.py gh-pages-deploy
9
10
pages:
11
stage: deploy
12
script:
13
- echo "The site will be deployed to $CI_PAGES_URL"
14
artifacts:
15
paths:
16
- build
17
rules:
18
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
19
20