diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index 2ec6e73..db7d50d 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -28,3 +28,95 @@ jobs: uses: helm/chart-releaser-action@v1.7.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Update gh-pages with Chart README and Index + run: | + # Get the repository name + REPO_NAME="${GITHUB_REPOSITORY##*/}" + REPO_OWNER="${GITHUB_REPOSITORY%/*}" + + # Switch to gh-pages branch + git fetch origin gh-pages + git checkout gh-pages + + # Copy Chart README to root + git checkout ${GITHUB_REF#refs/tags/} -- charts/nextcloud-mcp-server/README.md + mv charts/nextcloud-mcp-server/README.md README.md || true + rm -rf charts 2>/dev/null || true + + # Create index.html with installation instructions + cat > index.html <<'EOF' + + +
+ + +A Helm chart for deploying the Nextcloud MCP (Model Context Protocol) Server on Kubernetes, enabling AI assistants to interact with your Nextcloud instance.
+ +Add the Helm repository:
+helm repo add nextcloud-mcp https://REPO_OWNER.github.io/REPO_NAME/
+ helm repo update
+
+ Install the chart:
+helm install nextcloud-mcp nextcloud-mcp/nextcloud-mcp-server \
+ --set nextcloud.host=https://cloud.example.com \
+ --set auth.basic.username=myuser \
+ --set auth.basic.password=mypassword
+
+ See the full documentation for detailed configuration options, examples, and troubleshooting guides.
+ +Generated by chart-releaser
+ + + EOF + + # Replace placeholders + sed -i "s/REPO_OWNER/$REPO_OWNER/g" index.html + sed -i "s/REPO_NAME/$REPO_NAME/g" index.html + + # Commit changes + git add README.md index.html + git commit -m "Update README and index from chart release" || echo "No changes to commit" + git push origin gh-pages diff --git a/charts/nextcloud-mcp-server/Chart.yaml b/charts/nextcloud-mcp-server/Chart.yaml index d17a03d..bd5a8a2 100644 --- a/charts/nextcloud-mcp-server/Chart.yaml +++ b/charts/nextcloud-mcp-server/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: nextcloud-mcp-server description: A Helm chart for Nextcloud MCP Server - enables AI assistants to interact with Nextcloud type: application -version: 0.1.0 +version: 0.1.1 appVersion: "0.21.0" keywords: - nextcloud diff --git a/pyproject.toml b/pyproject.toml index e03183b..0a1cea5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,9 @@ version_scheme = "pep440" version_provider = "uv" update_changelog_on_bump = true major_version_zero = true +version_files = [ + "charts/nextcloud-mcp-server/Chart.yaml:^appVersion:" +] [tool.ruff.lint] extend-select = ["I"]