36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: Publish Docs manually
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
docs-publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
- name: Configure Git Credentials
|
|
run: |
|
|
git config user.name github-actions[bot]
|
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
|
|
with:
|
|
enable-cache: true
|
|
version: 0.9.5
|
|
|
|
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
|
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
|
|
with:
|
|
key: mkdocs-material-${{ env.cache_id }}
|
|
path: .cache
|
|
restore-keys: |
|
|
mkdocs-material-
|
|
|
|
- run: uv sync --frozen --group docs
|
|
- run: uv run --frozen --no-sync mkdocs gh-deploy --force
|
|
env:
|
|
ENABLE_SOCIAL_CARDS: "true"
|