diff --git a/.cr.yaml b/.cr.yaml new file mode 100644 index 00000000..2cc4b07b --- /dev/null +++ b/.cr.yaml @@ -0,0 +1,4 @@ +# This file is the config file for helm/chart-releaser +owner: cybozu-go +git-repo: mantle +release-name-template: "{{ .Name }}-chart-v{{ .Version }}" diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml new file mode 100644 index 00000000..576c1d88 --- /dev/null +++ b/.github/workflows/helm-release.yaml @@ -0,0 +1,24 @@ +name: "Release Charts" + +on: "workflow_dispatch" + +jobs: + release: + runs-on: "ubuntu-latest" + steps: + - name: "Checkout" + uses: actions/checkout@v4 + 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" + uses: helm/chart-releaser-action@v1.6.0 + with: + config: ".cr.yaml" + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"