Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish chart
on:
push:
branches:
- main
paths:
- Chart.yaml
- values.yaml
- templates/**
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
- name: Package and index if this version is not published yet
run: |
set -eu
version=$(helm show chart . | awk '/^version:/ {print $2}')
if [ -f "charts/authorizer-${version}.tgz" ]; then
echo "authorizer-${version}.tgz already published"
exit 0
fi
make build
git config user.name github-actions
git config user.email github-actions@github.com
git add "charts/authorizer-${version}.tgz" index.yaml
git commit -m "chore: publish chart ${version} [skip ci]"
git push
Binary file added charts/authorizer-2.2.0.tgz
Binary file not shown.
Loading