diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 67e96eb..9090bd2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,24 @@ image: python:3.7-alpine -build: +pages: + stage: deploy script: - - apk update && apk add make - - pip install -r requirements.txt - - PATH=$PATH:~/.local/bin - - make publish - - rm -rf /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/pelican - - cp -r output /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/pelican + - apk update && apk add make + - pip install -r requirements.txt + - make publish artifacts: paths: - - public + - public/ + only: + - master + +test: + stage: test + script: + - apk update && apk add make + - pip install -r requirements.txt + - make publish + only: + - branches + except: + - master