Skip to content

Merge pull request #179 from marquiz/release-0.2 #3

Merge pull request #179 from marquiz/release-0.2

Merge pull request #179 from marquiz/release-0.2 #3

Workflow file for this run

name: Package Helm charts
on:
push:
tags:
- "v*.*.*"
env:
CHARTS_DIR: deployment/helm/
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Helm
uses: azure/setup-helm@v3
- name: Package Helm charts
run: |
helm package --version "$GITHUB_REF_NAME" --app-version "$GITHUB_REF_NAME" "$CHARTS_DIR"/*
find . -name '*.tgz' -print | while read SRC_FILE; do
DEST_FILE=$(echo $SRC_FILE | sed 's/v/helm-chart-v/g')
mv $SRC_FILE $DEST_FILE
done
- name: Upload Helm packages to GitHub releases
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}
draft: true
append_body: true
files: nri-*helm-chart*.tgz