Skip to content

chore(charts-release): update GitHub actions and chart icons #13

chore(charts-release): update GitHub actions and chart icons

chore(charts-release): update GitHub actions and chart icons #13

name: charts release
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'src/charts/**'
jobs:
release:
runs-on: ubuntu-latest
name: Charts Release
steps:
- name: checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.ES_GITHUB_PAT }}
path: helm-charts
ref: main
- name: helm - package
run: |
for dir in src/charts/*; do
if [ -d "$dir" ]; then
chart_name=$(basename "$dir")
dest_dir="repository/$chart_name"
mkdir -p "$dest_dir"
helm package "$dir" -d "$dest_dir"
echo "Packaged $chart_name to $dest_dir"
fi
done
- name: github - publish - charts
run: |
git config user.name "Romeo Dumitrescu"
git config user.email "5931333+winromulus@users.noreply.github.com"
git add .
git status
git commit -m "Published charts"
git push