gh actions #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 Helm Charts | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: 'v3.7.0' | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
- name: Package Helm Charts | |
run: helm package -d charts/tmp hive-metastore | |
- name: Publish Helm Charts on bh-pages branch | |
run: | | |
git fetch | |
git checkout bh-pages | |
mv charts/tmp/* charts/ | |
helm repo index . | |
git add -A | |
git commit -m "Helm chart release" | |
git push |