Skip to content

Merge pull request #51 from Emerald-awa/patch-10 #6

Merge pull request #51 from Emerald-awa/patch-10

Merge pull request #51 from Emerald-awa/patch-10 #6

name: Build and Deploy to Netlify
on:
push:
branches:
- 'main'
- 'master'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Dependencies
run: |
if [ -f requirements.txt ]; then
pip install -r requirements.txt
else
pip install mkdocs mkdocs-material
fi
- name: Build MkDocs Site
run: mkdocs build
- name: Deploy to netlify
uses: South-Paw/action-netlify-cli@2.0.0
with:
args: deploy --dir=site --prod
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}