-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.28 KB
/
ci.yml
File metadata and controls
51 lines (44 loc) · 1.28 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# taken from https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions
# and adapted
name: ci
on:
workflow_dispatch: # Enable manual trigger
push:
branches:
- main
paths-ignore:
- README.md
- CONTRIBUTING.md
- .gitignore
- .dockerignore
- docker-compose.yaml
- Dockerfile
concurrency:
group: pages-deployment
cancel-in-progress: false # Wait for previous deployments to finish
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch the whole git history
# (needed for git-revision-date-localized &
# mkdocs-git-authors-plugin plugin)
- 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@v6
with:
enable-cache: true
# respects pinned Python version
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync --locked
- name: Build the site and deploy
run: uv run mkdocs gh-deploy --force