Add list permission #9
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 | |
mkdir -p ../dist | |
mv hypha-server-*.tgz ../dist | |
helm package redis | |
mv redis-*.tgz ../dist | |
helm repo index ../dist --url https://hypha-server.github.io/helm-charts/ | |
- name: Install Hypha Helm chart from packaged .tgz | |
run: | | |
helm install redis ./dist/redis-*.tgz --namespace=hypha | |
helm install hypha-server ./dist/hypha-server-*.tgz --namespace=hypha | |
- name: Uninstall Hypha Helm chart | |
run: | | |
helm uninstall hypha-server --namespace=hypha | |
helm uninstall redis --namespace=hypha | |
- name: Upload to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
publish_branch: gh-pages | |
keep_files: true |