Skip to main content
Glama
publish.yml1.22 kB
name: Publish to PyPI on: push: tags: - 'v*' workflow_dispatch: permissions: contents: read jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Extract version from tag id: get_version run: | if [ "${{ github.ref_type }}" = "tag" ]; then VERSION=${GITHUB_REF#refs/tags/v} echo "version=$VERSION" >> $GITHUB_OUTPUT else echo "version=0.0.0-dev" >> $GITHUB_OUTPUT fi - name: Update version in pyproject.toml run: | VERSION="${{ steps.get_version.outputs.version }}" sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml echo "Updated version to $VERSION" grep "^version = " pyproject.toml - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install dependencies run: | python -m pip install --upgrade pip pip install build twine - name: Build package run: python -m build - name: Publish to PyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | twine upload dist/*

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DrumRobot/claude-session-manager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server