Small fix #2
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: Test and Publish Hypha Helm Chart | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'hypha/VERSION' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'hypha/VERSION' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Kubernetes cluster using KinD | |
uses: helm/[email protected] | |
with: | |
version: v0.20.0 | |
- name: Set up Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: v3.11.2 | |
- name: Create hypha namespace | |
run: kubectl create namespace hypha | |
- name: Package Helm chart | |
run: | | |
cd helm-charts | |
helm package hypha-server | |
helm repo index . --url https://amun-ai.github.io/hypha/helm-charts | |
- name: Publish to gh-pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./helm-charts | |
publish_branch: gh-pages | |
- name: Uninstall Hypha Helm chart | |
run: helm uninstall hypha-server --namespace=hypha | |
- name: Delete namespace | |
run: kubectl delete namespace hypha |