-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.11 KB
/
documentation.yml
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
52
---
# gratefully copied and adjusted from docker-mailserver/docker-mailserver
name: Documentation
on: # yamllint disable-line rule:truthy
workflow_dispatch:
push:
branches: [master]
paths:
- .github/workflows/documentation.yml
- documentation/**
tags: ['[0-9]+.[0-9]+*']
permissions:
contents: write
defaults:
run:
working-directory: documentation
env:
CACHE_ID: unknown
jobs:
deployment:
name: Deployment
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python 3
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Prepare CACHE_ID
run: echo "CACHE_ID=$(date --utc '+%V')" >>"${GITHUB_ENV}"
- name: Setup cache
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.CACHE_ID }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install Python dependencies
run: pip install mkdocs-material==9.5.4
- name: Deploy documentation
run: mkdocs gh-deploy --strict --force