Skip to main content
Glama
pypi.yaml•1.62 kB
name: Publish to PyPI on: workflow_dispatch: release: types: [published] push: branches: [main] paths-ignore: - .github/** jobs: build: name: Build distribution 📦 runs-on: ubuntu-latest outputs: PYPI_PKG_NAME: ${{ steps.prepare.outputs.PYPI_PKG_NAME }} steps: - name: Prepare id: prepare run: | repo=${GITHUB_REPOSITORY#*/} echo "PYPI_PKG_NAME=$repo" >> $GITHUB_ENV echo "PYPI_PKG_NAME=$repo" >> $GITHUB_OUTPUT - uses: actions/checkout@v4 with: persist-credentials: false - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.x" - name: Install pypa/build run: python3 -m pip install build --user - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages uses: actions/upload-artifact@v4 with: name: python-package-distributions path: dist/ publish-to-pypi: name: Publish to PyPI needs: - build runs-on: ubuntu-latest environment: name: pypi url: https://pypi.org/p/${{ needs.build.outputs.PYPI_PKG_NAME }} permissions: id-token: write steps: - name: Download all the dists uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 if: startsWith(github.ref, 'refs/tags/') with: password: ${{ secrets.PYPI_API_TOKEN }}

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/aahl/mcp-okx'

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