-
Notifications
You must be signed in to change notification settings - Fork 150
49 lines (43 loc) · 1.28 KB
/
ci.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
name: CI and Deployments
on:
push:
branches:
- feat/documentation
- main
jobs:
deploy-docs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/feat/documentation'
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install mkdocs-material[imaging]
- name: Build and Deploy Documentation
run: mkdocs gh-deploy --force
publish-chart:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Publish Helm chart
uses: stefanprodan/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
charts_dir: contrib/charts
charts_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/charts
branch: gh-pages
target_dir: helm-charts
linting: off