Skip to content

Merge pull request #97 from nicholasyager/feature/block_plugin_telemetry #2

Merge pull request #97 from nicholasyager/feature/block_plugin_telemetry

Merge pull request #97 from nicholasyager/feature/block_plugin_telemetry #2

name: Publish MkDocs on Main Branch
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install poetry
poetry install --with=docs
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
poetry run mike deploy --push --message "Deployed by GitHub Actions" main