19 lines
387 B
YAML
19 lines
387 B
YAML
when:
|
|
event: push
|
|
branch: main
|
|
|
|
steps:
|
|
build:
|
|
image: python:3.9
|
|
commands:
|
|
- pip3 install -r requirements.txt
|
|
- mkdocs build --site-dir publish
|
|
|
|
deploy:
|
|
image: node:18
|
|
secrets:
|
|
- NETLIFY_SITE_ID
|
|
- NETLIFY_AUTH_TOKEN
|
|
commands:
|
|
- npm install -D netlify-cli
|
|
- npx netlify deploy --site=$NETLIFY_SITE_ID --dir=publish --prod
|