-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (28 loc) · 967 Bytes
/
release_docs.yml
File metadata and controls
32 lines (28 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Release docs
on:
pull_request:
types: [closed]
branches: [ main ]
permissions:
contents: write
jobs:
deploy:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: true
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
with:
enable-cache: true
python-version: "3.12"
version: "latest"
- name: Install Dependencies
run: uv sync --only-group docs
- name: Deploy Docs
run: uv run mkdocs gh-deploy --force