Delete sources/tetrate-gslb directory #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |