Skip to content

Commit 6401b9a

Browse files
committed
Helm release workflow
1 parent 6f19e7c commit 6401b9a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/helm-release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Charts
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "charts/**"
9+
- ".github/workflows/helm-release.yml"
10+
jobs:
11+
release:
12+
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
13+
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
14+
permissions:
15+
contents: write
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Configure Git
24+
run: |
25+
git config user.name "$GITHUB_ACTOR"
26+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
27+
28+
- name: Install Helm
29+
uses: azure/setup-helm@v3
30+
31+
- name: Run chart-releaser
32+
uses: helm/chart-releaser-action@v1.6.0
33+
with:
34+
pages_branch: main
35+
env:
36+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)