Skip to content

updated script to use ssh for clone instead of https #5

updated script to use ssh for clone instead of https

updated script to use ssh for clone instead of https #5

name: MkDocs Publish
on:
push:
branches:
- main
paths-ignore:
- ".github/**"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
if: startsWith(github.event.head_commit.message, 'docs')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install the project
run: uv sync --all-extras --dev
- name: Build and deploy
run: |
uv run mkdocs build --verbose
uv run mkdocs gh-deploy --verbose --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}