Skip to main content
Glama
publish.yml2.09 kB
name: Publish to PyPI on: release: types: [published] workflow_dispatch: inputs: test_pypi: description: 'Publish to Test PyPI instead of PyPI' required: false default: true type: boolean jobs: test: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-dependency-glob: "uv.lock" - name: Set up Python ${{ matrix.python-version }} run: uv python install ${{ matrix.python-version }} - name: Install dependencies run: | uv sync --all-groups uv pip install -e . - name: Run all quality checks run: | make check build: needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7 - name: Set up Python run: uv python install 3.13.5 - name: Build package run: | uv build - name: Upload artifacts uses: actions/upload-artifact@v5 with: name: dist path: dist/ publish: needs: build runs-on: ubuntu-latest if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' permissions: id-token: write # For trusted publishing steps: - name: Download artifacts uses: actions/download-artifact@v6 with: name: dist path: dist/ - name: Publish to Test PyPI if: github.event_name == 'workflow_dispatch' && github.event.inputs.test_pypi == 'true' uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ skip-existing: true - name: Publish to PyPI if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.test_pypi == 'false') uses: pypa/gh-action-pypi-publish@release/v1 with: skip-existing: true

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/ervwalter/mcp-kanka'

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