-
Notifications
You must be signed in to change notification settings - Fork 199
41 lines (38 loc) · 1.1 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
---
name: Build and deploy documentation on merge to master
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
on:
pull_request:
paths:
- 'docs/**'
- '.github/worklows/documentation.yml'
- 'requirements.docs.txt'
- 'Dockerfile.docs'
- 'mkdocs.yml'
- 'CNAME'
push:
branches:
- master
paths:
- 'docs/**'
- '.github/worklows/documentation.yml'
- 'requirements.docs.txt'
- 'Dockerfile.docs'
- 'mkdocs.yml'
- 'CNAME'
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout kapitan recursively
uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install --upgrade pip && pip install -r requirements.docs.txt
- run: mkdocs build
- name: Deploy docs
if: github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mike deploy --push dev master