From 167743c8f3e074253adbfcde6b5e1f723655a025 Mon Sep 17 00:00:00 2001 From: Shinya Hayashi Date: Thu, 20 Jun 2024 09:23:14 +0000 Subject: [PATCH] add chart release workflow Signed-off-by: Shinya Hayashi --- .cr.yaml | 4 ++++ .github/workflows/helm-release.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .cr.yaml create mode 100644 .github/workflows/helm-release.yaml 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 }}"