Update publish-handbook.yml (#12) #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ultralytics 🚀 - AGPL-3.0 License https://ultralytics.com/license | |
name: Publish Handbook to GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install black mkdocs-material mkdocs-ultralytics-plugin | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Deploy to GitHub Pages | |
run: | | |
git config --global user.name 'UltralyticsAssistant' | |
git config --global user.email '[email protected]' | |
mkdocs gh-deploy --force |