Skip to content

Commit e1bb194

Browse files
authored
chore: add chart release workflow (#186)
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
1 parent af73cfa commit e1bb194

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/helm-release.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Helm Release
4+
5+
# permissions: {}
6+
7+
on:
8+
push:
9+
tags:
10+
- 'chart-v*'
11+
12+
jobs:
13+
chart-releaser:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pages: write
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
21+
- name: Install Helm
22+
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
23+
- name: Set version
24+
run: |
25+
set -e
26+
TAG=${{ github.ref_name }}
27+
echo "CHART_VERSION=${TAG#chart-}" >> $GITHUB_ENV
28+
- name: Run chart-releaser
29+
uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 #v1.7.0
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
linting: off
33+
charts_dir: charts
34+
chart_version: ${{ env.CHART_VERSION }}

0 commit comments

Comments
 (0)