Skip to main content
Glama
bpamiri
by bpamiri
publish.yml2.17 kB
name: Publish to PyPI on: push: tags: - 'v*' # Trigger on version tags like v0.3.1 jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install build tools run: pip install build - name: Build package run: python -m build - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: dist path: dist/ publish: runs-on: ubuntu-latest needs: build environment: pypi permissions: id-token: write # Required for trusted publishing steps: - name: Download artifacts uses: actions/download-artifact@v4 with: name: dist path: dist/ - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 release: runs-on: ubuntu-latest needs: publish permissions: contents: write # Required to create releases steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all history for tags - name: Extract version from tag id: version run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - name: Generate release notes id: notes run: | # Get commits since last tag PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "") if [ -n "$PREV_TAG" ]; then COMMITS=$(git log --pretty=format:"- %s" "$PREV_TAG"..HEAD) else COMMITS=$(git log --pretty=format:"- %s" -10) fi # Write to file to handle multi-line echo "## Changes" > release_notes.md echo "" >> release_notes.md echo "$COMMITS" >> release_notes.md - name: Create GitHub Release uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.version.outputs.VERSION }} name: ${{ steps.version.outputs.VERSION }} body_path: release_notes.md draft: false prerelease: false

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/bpamiri/mssql-mcp'

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