diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 4c09e6b..59d47cb 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -6,6 +6,7 @@ name: Build Validation on: push: branches: [ "main" ] + tags: ["v*"] pull_request: branches: [ "main" ] @@ -35,3 +36,25 @@ jobs: - name: Pytest unit tests run: | pytest -m "not e2e" --verbose + publish: + needs: build + if: startswith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + env: + TWINE_USERNAME: "__token__" + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish Dapr Python SDK + env: + TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }} + run: | + python -m build + twine upload dist/* \ No newline at end of file diff --git a/README.md b/README.md index 22b3c44..47e7a00 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Durable Task Client SDK for Python +# Durable Task Client SDK for Python (Dapr fork) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Build Validation](https://github.com/microsoft/durabletask-python/actions/workflows/pr-validation.yml/badge.svg)](https://github.com/microsoft/durabletask-python/actions/workflows/pr-validation.yml) diff --git a/pyproject.toml b/pyproject.toml index d57957d..b6cb061 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" [project] -name = "durabletask" +name = "durabletask-dapr" version = "0.1.1-alpha.1" description = "A Durable Task Client SDK for Python" keywords = [ @@ -29,8 +29,8 @@ dependencies = [ ] [project.urls] -repository = "https://github.com/microsoft/durabletask-python" -changelog = "https://github.com/microsoft/durabletask-python/blob/main/CHANGELOG.md" +repository = "https://github.com/dapr/durabletask-python" +changelog = "https://github.com/dapr/durabletask-python/blob/main/CHANGELOG.md" [tool.setuptools.packages.find] include = ["durabletask", "durabletask.*"]