From c4a809e036c476b53d0d2a568cd61c8bd63df8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Wed, 6 Nov 2024 10:41:04 +0100 Subject: [PATCH] feat: add chart release workflow (#176) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- .github/workflows/helm-release.yaml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/helm-release.yaml diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml new file mode 100644 index 0000000..07f8d60 --- /dev/null +++ b/.github/workflows/helm-release.yaml @@ -0,0 +1,34 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +name: Helm Release + +permissions: {} + +on: + push: + tags: + - 'chart-v*' + +jobs: + chart-releaser: + runs-on: ubuntu-latest + permissions: + contents: write + pages: write + steps: + - name: Checkout + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + - name: Install Helm + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + - name: Set version + run: | + set -e + TAG=${{ github.ref_name }} + echo "CHART_VERSION=${TAG#chart-}" >> $GITHUB_ENV + - name: Run chart-releaser + uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 #v1.7.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + linting: off + charts_dir: charts + chart_version: ${{ env.CHART_VERSION }}