add chart release workflow

This commit is contained in:
Sebastian Florek 2025-01-10 16:18:38 +01:00
parent 93ee38c4ce
commit fe6677584a
No known key found for this signature in database
GPG Key ID: DBC7C083B0200A0F
3 changed files with 34 additions and 0 deletions

5
.github/configs/cr.yaml vendored Normal file
View File

@ -0,0 +1,5 @@
## Reference: https://github.com/helm/chart-releaser/blob/main/pkg/config/config.go#L40-L65
index-path: "./index.yaml"
release-name-template: "{{ .Name }}-chart-v{{ .Version }}"
generate-release-notes: true
skip-existing: true

29
.github/workflows/chart.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Publish Chart
on:
push:
branches:
- master
jobs:
publish:
name: Publish Helm Chart
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Run chart-releaser
id: release
uses: helm/chart-releaser-action@v1.5.0
with:
config: "./.github/configs/cr.yaml"
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"