Skip to content

Commit 4a8beac

Browse files
authored
Merge pull request #121 from joshsizer/add-helm-release-actions
chore: add helm release action
2 parents 1d81ad8 + b81a30d commit 4a8beac

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release Charts
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
permissions:
9+
contents: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Configure Git
18+
run: |
19+
git config user.name "$GITHUB_ACTOR"
20+
git config user.email "[email protected]"
21+
22+
- name: Install chart-releaser
23+
uses: helm/[email protected]
24+
with:
25+
install_only: true
26+
27+
- name: Run chart-releaser
28+
env:
29+
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
30+
run: |
31+
owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
32+
repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")
33+
cr package
34+
cr upload --owner="$owner" --git-repo "$repo" --token="$CR_TOKEN" --release-name-template="v{{ .Version }}" --packages-with-index --push --skip-existing --generate-release-notes --commit main
35+
cr index --owner="$owner" --git-repo "$repo" --token="$CR_TOKEN" --release-name-template="v{{ .Version }}" --packages-with-index --push --index-path="."

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.cr-release-packages

0 commit comments

Comments
 (0)