forked from a5chin/python-uv
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 840 Bytes
/
docs.yml
File metadata and controls
32 lines (27 loc) · 840 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: mkdocs
on:
push:
branches: [ main ]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
# get full git commit to adjust for git-revision-date-localized plugin
fetch-depth: 0
- 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@v5
with:
enable-cache: true
- name: install dependencies and deploy
run: bash dev.sh docs deploy
# Reference
# 1. https://squidfunk.github.io/mkdocs-material/publishing-your-site/
# 2. https://github.com/Kludex/python-template/blob/main/.github/workflows/docs.yml