MG-143 - Auto-generate Markdown documentation from Helm charts (#144) #2
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
# Copyright (c) Magistrala | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Release Charts | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Call Common Steps | |
uses: ./.github/workflows/common.yaml | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.15.4 | |
- name: Add Dependencies | |
run: | | |
helm repo add stable https://charts.helm.sh/stable | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts | |
helm repo add hashicorp https://helm.releases.hashicorp.com | |
helm repo add nats https://nats-io.github.io/k8s/helm/charts/ | |
helm repo update | |
- name: Update Helm dependencies | |
run: | | |
helm dependency update charts/magistrala | |
- name: Add Dependencies | |
run: | | |
helm repo add stable https://charts.helm.sh/stable | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts | |
helm repo add hashicorp https://helm.releases.hashicorp.com | |
helm repo add nats https://nats-io.github.io/k8s/helm/charts/ | |
helm repo update | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: charts/magistrala | |
config: cr.yaml | |
env: | |
CR_TOKEN: "${{ secrets.HELM_RELEASE_TOKEN }}" |