1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-06-16 15:06:53 +00:00

always build but don't always publish

This commit is contained in:
Anson 2023-10-09 01:32:22 -06:00
parent a1bf4652f6
commit b6fc82b491

View File

@ -1,6 +1,7 @@
image: python:3.11 image: python:3.11
pages:
stage: deploy build_site:
stage: build
script: script:
- cd ./docs - cd ./docs
- pip install -r requirements.txt - pip install -r requirements.txt
@ -8,5 +9,15 @@ pages:
artifacts: artifacts:
paths: paths:
- public - public
# rules:
# - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' pages:
stage: deploy
script:
- echo "Publishing site..."
dependencies:
- build_site
artifacts:
paths:
- public
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'