Skip to content

gcp static

gcp static #52

Workflow file for this run

name: Helm Release
on:
push:
branches:
- main
paths:
- 'sources/**'
jobs:
helm-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Helm
uses: azure/[email protected]
- name: Package and Update Charts
run: |
cd sources
for dir in */ ; do
helm dependency update "$dir"
helm package "$dir" -d ../docs
done
helm repo index ../docs --url https://tetratecx.github.io/dogfood-helm
cd ..
- name: Commit and Push changes
run: |
git diff
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add docs/*
git commit -m "Release Helm charts and update index" || echo "No changes to commit"
git push || echo "No changes to push"