File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,34 @@ jobs:
117
117
echo "Uploading to test.pypi.org"
118
118
./venv/bin/twine upload --repository-url https://test.pypi.org/legacy/ workspace/dist/*`cat workspace/version.txt`*
119
119
120
+ deploy_pypi :
121
+ # Job to deploy on public PyPI
122
+ # Requires dist files under workspace/dist
123
+ docker :
124
+ - image : circleci/python:3.6
125
+
126
+ steps :
127
+
128
+ - attach_workspace :
129
+ at : workspace
130
+
131
+ - run :
132
+ name : Create VEnv with tools
133
+ command : |
134
+ python3 -m venv venv
135
+ . venv/bin/activate
136
+ pip install -U pip setuptools twine
137
+
138
+ - run :
139
+ name : Upload to PyPI
140
+ command : |
141
+ . venv/bin/activate
142
+ export TWINE_USERNAME="${PYPI_USERNAME}"
143
+ export TWINE_PASSWORD="${PYPI_PASSWORD}"
144
+ echo "Uploading to pypi.org"
145
+ ./venv/bin/twine upload workspace/dist/*`cat workspace/version.txt`*
146
+
147
+
120
148
install_from_test_pypi :
121
149
# Try to install from test-pypi
122
150
docker :
You can’t perform that action at this time.
0 commit comments