From 0f939308e4fe1aebd6cd7e3f66768ac9d60d1628 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Tue, 6 May 2025 14:44:18 -0700 Subject: [PATCH] ci: add publish workflow --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ pyproject.toml | 4 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..335ce2d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish + +on: + push: + tags: + - 'v*.*.*' + workflow_dispatch: + +concurrency: + group: publish-${{ github.head_ref || github.run_id }} + cancel-in-progress: false + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: astral-sh/setup-uv@v6 + with: + python-version: 3.10 + + - name: Publish to PyPI + run: uv publish --frozen + env: + UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index ff91942..849112a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "mcpauth" -version = "0.0.0" +version = "0.1.0-beta.0" description = "Plug-and-play auth for Python MCP servers." authors = [{ name = "Silverhand Inc.", email = "contact@silverhand.io" }] readme = "README.md" -requires-python = ">=3.10" +requires-python = "<4.0,>=3.10" license = "MIT" keywords = [ "authentication",