1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-15 23:06:40 +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
pages:
stage: deploy
build_site:
stage: build
script:
- cd ./docs
- pip install -r requirements.txt
@ -8,5 +9,15 @@ pages:
artifacts:
paths:
- 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'