-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (59 loc) · 1.5 KB
/
generate_docs.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Generate Docs
on:
workflow_run:
workflows:
- Release Charts
types:
- completed
release:
types:
- released
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
get_index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: gh-pages
- name: upload index
uses: actions/upload-artifact@v3
with:
name: helm_index
path: index.yaml
build_docs:
needs: get_index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- run: pip install helm_mkdocs mkdocs-material
- run: |
helm-mkdocs ./charts/deep -o docs_out/deep
helm-mkdocs ./charts/deep-distributed -o docs_out/deep-distributed
- run: cp README.md docs_out/index.md
- run: cp styles.css docs_out/styles.css
- run: mkdocs build
- name: Download index
uses: actions/download-artifact@v3
with:
name: helm_index
- run: cp index.yaml _site/index.yaml
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
deploy:
needs: build_docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2