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:
23
site/.gitlab-ci.yml
Normal file
23
site/.gitlab-ci.yml
Normal 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'
|
Reference in New Issue
Block a user