Stealth browser automation for AI agents over MCP and the Chrome DevTools Protocol: navigation, network hooks, DOM extraction, and pixel-accurate UI cloning.
Python ai-agent-toolsai-toolsanthropicanti-bot-bypassautomation-toolsbrowser-automationchrome-devtoolsclaude-mcpcloudflare-bypassdeveloper-toolsfastmcpmcp-servermodel-context-protocolnetwork-interceptionnodriverpythonstealth-browserundetectable-browserweb-automationweb-scraping
Add tag triggered PyPI release workflow
Vibhek Sonifdafa603bf40
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 0000000..42b14d8--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,41 @@+name: Release+on:+ push:+ tags:+ - 'v*'+jobs:+ build:+ runs-on: ubuntu-latest+ timeout-minutes: 10+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-python@v5+ with:+ python-version: '3.12'+ - run: python -m pip install -U pip build+ - name: Check tag matches package version+ run: |+ version=$(python -c "import re, pathlib; print(re.search(r'__version__ = \"(.+)\"', pathlib.Path('src/stealth_browser_mcp/__init__.py').read_text()).group(1))")+ test "v$version" = "$GITHUB_REF_NAME" || { echo "Tag $GITHUB_REF_NAME does not match version $version"; exit 1; }+ - name: Build sdist and wheel+ run: python -m build+ - uses: actions/upload-artifact@v4+ with:+ name: dist+ path: dist/++ publish:+ needs: build+ runs-on: ubuntu-latest+ timeout-minutes: 10+ environment:+ name: pypi+ url: https://pypi.org/project/stealth-browser-mcp/+ permissions:+ id-token: write+ steps:+ - uses: actions/download-artifact@v4+ with:+ name: dist+ path: dist/+ - uses: pypa/gh-action-pypi-publish@release/v1diff --git a/AGENTS.md b/AGENTS.mdindex fdfc050..e09b048 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -77,3 +77,7 @@ Set `STEALTH_BROWSER_TESTS=1` to include tests that launch a real browser. Bench- Powerful browser-control tools are intentional primitives for trusted local MCP clients.- Do not expose secrets from `.mcp.json`, environment variables, browser profiles, cookies, or debug exports.- Redact proxy credentials and tokens in diagnostics, logs, and summaries.++## Releasing++Bump `__version__` in `src/stealth_browser_mcp/__init__.py`, then push a matching tag such as `v0.3.0`. The release workflow builds the sdist and wheel and publishes them to PyPI through trusted publishing in the `pypi` environment, which only accepts `v*` tags.