45
45
uses : codecov/codecov-action@v3
46
46
publish :
47
47
needs : build
48
- if : github.event_name != 'pull_request '
48
+ if : github.event_name == 'create '
49
49
runs-on : ubuntu-latest
50
50
env :
51
51
TWINE_USERNAME : " __token__"
@@ -60,33 +60,38 @@ jobs:
60
60
python -m pip install --upgrade pip
61
61
pip install setuptools wheel twine tox
62
62
- name : Build and publish Dapr Python SDK
63
+ if : startsWith(github.ref_name, 'v')
63
64
env :
64
65
TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
65
66
run : |
66
67
python setup.py sdist bdist_wheel
67
68
twine upload dist/*
68
69
- name : Build and publish dapr-ext-workflow
70
+ if : startsWith(github.ref_name, 'worfklow-v')
69
71
env :
70
72
TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
71
73
run : |
72
74
cd ext/dapr-ext-workflow
73
75
python setup.py sdist bdist_wheel
74
76
twine upload dist/*
75
77
- name : Build and publish Dapr Flask Extension
78
+ if : startsWith(github.ref_name, 'flask-v')
76
79
env :
77
80
TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
78
81
run : |
79
82
cd ext/flask_dapr
80
83
python setup.py sdist bdist_wheel
81
84
twine upload dist/*
82
85
- name : Build and publish dapr-ext-grpc
86
+ if : startsWith(github.ref_name, 'grpc-v')
83
87
env :
84
88
TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
85
89
run : |
86
90
cd ext/dapr-ext-grpc
87
91
python setup.py sdist bdist_wheel
88
92
twine upload dist/*
89
93
- name : Build and publish dapr-ext-fastapi
94
+ if : startsWith(github.ref_name, 'fastapi-v')
90
95
env :
91
96
TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
92
97
run : |
0 commit comments