-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (40 loc) · 1.21 KB
/
release-charts.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
name: Release Helm Charts
on:
push:
branches:
- main
jobs:
release:
name: Release Helm Charts
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v4
with:
version: v3.15.1
- name: Add dependency repositories
run: |
for dir in $(ls -d charts/*/); do
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
done
- name: Configure Git for Chart Releaser
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run chart-releaser
uses: netfoundry/chart-releaser-action@v0
with:
version: v0.1.6105
charts_dir: charts
skip_existing: true
mark_as_latest: true
pages_branch: gh-pages
generate_release_notes: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"