Publish Helm Chart #238
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Helm Chart | |
on: | |
workflow_dispatch: | |
inputs: | |
chart_name: | |
description: "The chart to publish (use * to publish all charts)" | |
required: true | |
jobs: | |
publish-chart: | |
name: Publish ${{ github.event.inputs.chart_name }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: azure/setup-helm@v4 | |
with: | |
version: "v3.13.3" | |
- uses: actions/checkout@v4 | |
- name: Configure Git Author as Workflow Actor | |
run: | | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
git config --global user.name "${{ github.actor }}" | |
- name: Add Helm Repos | |
run: | | |
make repo-add | |
- name: Build ${{ github.event.inputs.chart_name }} Helm Chart & Push to Github Pages | |
if: github.event.inputs.chart_name != '*' | |
run: | | |
export CHART_NAME=${{ github.event.inputs.chart_name }} | |
export PUBLISH_CREDS=${{ github.actor }}:${{ github.token }} | |
make helm-publish-stable-specific-v2 | |
- name: Build All Helm Chart & Push to Github Pages | |
if: github.event.inputs.chart_name == '*' | |
run: | | |
export PUBLISH_CREDS=${{ github.actor }}:${{ github.token }} | |
make helm-publish-all |