We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cafferychen777/ChatSpatial'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
pages.yml•2.26 KiB
name: Deploy Jekyll with Just the Docs to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- 'docs/**'
- '.github/workflows/pages.yml'
# README.md 改动不需要重新部署文档网站
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for proper git info
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
cache-version: 0
working-directory: docs
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: |
cd docs
bundle install --jobs=4 --retry=3
- name: Build with Jekyll
# Outputs to the './docs/_site' directory by default
run: |
cd docs
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" --verbose
env:
JEKYLL_ENV: production
- name: Test built site
run: |
cd docs
test -f _site/index.html || (echo "Site build failed - index.html not found" && exit 1)
echo "Site built successfully"
- name: Upload artifact
# Automatically uploads an artifact from the './docs/_site' directory by default
uses: actions/upload-pages-artifact@v3
with:
path: "docs/_site/"
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4