Skip to main content
Glama
release-publish.yml1.65 kB
name: Release and Publish to PyPI on: push: branches: - main workflow_dispatch: jobs: create-release: name: Create Tag and Release runs-on: ubuntu-latest permissions: contents: write outputs: release_created: ${{ steps.changelog.outputs.skipped != 'true' }} tag: ${{ steps.changelog.outputs.tag }} steps: - name: Checkout the repo uses: actions/checkout@v4 - name: Generate Tag and Changelog id: changelog uses: TriPSs/conventional-changelog-action@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} output-file: 'false' create-summary: 'true' version-file: './pyproject.toml' version-path: 'project.version' - name: Create GitHub Release if: steps.changelog.outputs.skipped == 'false' uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.changelog.outputs.tag }} name: ${{ steps.changelog.outputs.tag }} body: ${{ steps.changelog.outputs.clean_changelog }} publish-pypi: name: Publish to PyPI needs: create-release if: needs.create-release.outputs.release_created == 'true' environment: pypi runs-on: ubuntu-latest permissions: id-token: write steps: - uses: actions/checkout@v4 - name: Install uv and setup the python version uses: astral-sh/setup-uv@v6 - name: Install the project run: uv sync --all-groups - name: Build wheel run: uv build - name: Publish package run: uv publish

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/Pradumnasaraf/aviationstack-mcp'

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