Skip to content

Commit

Permalink
feat: add chart release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly committed Nov 6, 2024
1 parent c1b120f commit dbcca7d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit dbcca7d

Please sign in to comment.