updated script to use ssh for clone instead of https #5
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
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 }} |