more flexible env vars (#8) #10
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: Release Charts | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "charts/**" | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.12.1 | |
- name: Build chart dependencies | |
run: | | |
for dir in charts/*/ | |
do | |
(cd ${dir}; helm dependency build) | |
done | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
version: v1.6.1 | |
env: | |
CR_TOKEN: "${{ secrets.CR_TOKEN }}" | |
CR_GENERATE_RELEASE_NOTES: true |