-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.28 KB
/
Copy pathpublish-helm.yml
File metadata and controls
47 lines (38 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
name: Publish Helm Charts
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Helm
uses: azure/setup-helm@v3
- name: Package Helm Charts
run: |
cp README.md chart/README.md
mkdir -p packaged
helm package ./chart -d packaged
- name: Clone gh-pages
run: |
git clone --branch gh-pages --depth 1 \
https://github.com/PragmaticFlow/nbomber-timescale-helm gh-pages || mkdir gh-pages
# Copy existing chart packages alongside the new one, then index all present files
- name: Build index.yaml from present packages
run: |
find gh-pages -maxdepth 1 -name '*.tgz' -exec cp {} packaged/ \;
helm repo index packaged \
--url https://pragmaticflow.github.io/nbomber-timescale-helm/
# Move new packaged files into gh-pages folder
- name: Move packaged files
run: |
cp -r packaged/* gh-pages/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages
publish_branch: gh-pages