Skip to content

Commit 4d35768

Browse files
switch from bash to template approach for creating pypi config file (#6409)
1 parent ea6fabc commit 4d35768

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

.github/workflows/release-main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
CIRQ_PYPI_TOKEN: ${{ secrets.CIRQ_PYPI_TOKEN }}
2727
CIRQ_TEST_PYPI_TOKEN: ${{ secrets.CIRQ_TEST_PYPI_TOKEN }}
2828
run: |
29-
dev_tools/packaging/create_pypirc.sh
29+
envsubst < dev_tools/packaging/pypirc_template > $HOME/.pypirc
3030
- name: Build and publish
3131
run: |
3232
export CIRQ_PRE_RELEASE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)

dev_tools/packaging/create_pypirc.sh

-13
This file was deleted.

dev_tools/packaging/pypirc_template

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[pypi]
2+
username = __token__
3+
password = ${CIRQ_PYPI_TOKEN}
4+
5+
[testpypi]
6+
username = __token__
7+
password = ${CIRQ_TEST_PYPI_TOKEN}

0 commit comments

Comments
 (0)