20 lines
444 B
YAML
20 lines
444 B
YAML
when:
|
|
event: push
|
|
branch: main
|
|
|
|
pipeline:
|
|
build:
|
|
image: python:3.9
|
|
commands:
|
|
- pip3 install -r requirements.txt
|
|
- mkdocs build --site-dir publish
|
|
|
|
deploy:
|
|
image: node:18
|
|
environment:
|
|
- NETLIFY_SITE_ID=a41006ac-4870-484f-9fef-2d45e9546837
|
|
secrets:
|
|
- NETLIFY_AUTH_TOKEN
|
|
commands:
|
|
- npm install -D netlify-cli
|
|
- npx netlify deploy --site=$NETLIFY_SITE_ID --dir=publish --prod
|