1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-07-27 08:31:41 +00:00

Resolve "Add a blog to the website"

This commit is contained in:
2023-10-10 04:19:46 +00:00
parent 937732b346
commit 33550f1519
26 changed files with 114 additions and 15 deletions

23
site/.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,23 @@
image: python:3.11
build_site:
stage: build
script:
- cd ./site
- pip install -r requirements.txt
- mkdocs build --site-dir ../public --verbose
artifacts:
paths:
- public
deploy_site:
stage: deploy
script:
- echo "Publishing site..."
dependencies:
- build_site
artifacts:
paths:
- public
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'