Skip to content

update :: test

update :: test #12

Workflow file for this run

## Reference: https://github.com/helm/chart-releaser-action
name: Chart Publish
on:
push:
branches:
- main
paths:
- "helm/**"
permissions:
contents: read
jobs:
publish:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install Helm
uses: azure/[email protected]
with:
version: v3.10.1 # Also update in lint-and-test.yaml
- name: Filter for helm directory and store in variable
id: helm_files
run: |
helm_paths=()
for path in ${{ steps.list_files.outputs.stdout }}; do
if [[ $path == helm/* ]]; then
helm_paths+=("$path")
fi
done
echo "helm_paths=${helm_paths[*]}" >> $GITHUB_OUTPUT
- name: Helm package
run: |
paths="${{ steps.helm_files.outputs.helm_paths }}"
for path in $paths; do
helm package "$path"
done
- name: get *.tgz list
id: package_list
run: |
package_list=$(find . -type f -name "*.tgz" -exec basename {} \; | tr '\n' ' ')
echo "package_list=$package_list" >> $GITHUB_OUTPUT
- name: Copy To Branches Action
uses: planetoftheweb/copy-to-branches@v1
env:
key: main
branches: gh-pages
files: ${{ steps.package_list.outputs.package_list }}