diff --git a/.github/workflows/healm_publish.yaml b/.github/workflows/healm_publish.yaml new file mode 100644 index 0000000..26c557e --- /dev/null +++ b/.github/workflows/healm_publish.yaml @@ -0,0 +1,29 @@ +name: helm-publish + +on: + release: + types: [prereleased, released] + +env: + HELM_CHARTS_PATH: "." + +jobs: + upload-helm-charts: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: azure/setup-helm@v1 + + - name: Package helm charts + run: helm package . + working-directory: ${{ env.HELM_CHARTS_PATH }} + + - name: Rename helm chart archives + run: for filename in *.tgz; do mv "$filename" "helm-chart-$filename"; done + working-directory: ${{ env.HELM_CHARTS_PATH }} + + - uses: softprops/action-gh-release@v1 + with: + files: ${{ env.HELM_CHARTS_PATH }}/*.tgz