File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,13 @@ jobs:
21
21
run : |
22
22
python -m pip install --upgrade pip
23
23
pip install setuptools wheel twine
24
+ - name : Create PYPI config file
25
+ run : |
26
+ dev_tools/packaging/create_pypirc.sh
24
27
- name : Build and publish
25
28
run : |
26
29
export CIRQ_PRE_RELEASE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)
27
30
[[ "$CIRQ_PRE_RELEASE_VERSION" =~ .*dev.* ]] && echo "Deploying dev version '$CIRQ_PRE_RELEASE_VERSION'" || (echo "not dev version"; exit 1)
28
31
out_dir="${PWD}/dist"
29
32
dev_tools/packaging/produce-package.sh ${out_dir} $CIRQ_PRE_RELEASE_VERSION
30
- twine upload "${out_dir}/*" -u __token__ -p ${{ secrets.CIRQ_PYPI_TOKEN }}
33
+ twine upload "${out_dir}/*"
Original file line number Diff line number Diff line change
1
+ echo " " "
2
+ [pypi]
3
+ username = __token__
4
+ password = ${{ secrets.CIRQ_PYPI_TOKEN } }
5
+
6
+ [testpypi]
7
+ username = __token__
8
+ password = ${{ secrets.CIRQ_TEST_PYPI_TOKEN } }
9
+ " " " >> $HOME /.pypirc
You can’t perform that action at this time.
0 commit comments