Skip to content

Commit

Permalink
switch from bash to template approach for creating pypi config file (q…
Browse files Browse the repository at this point in the history
  • Loading branch information
NoureldinYosri authored Jan 10, 2024
1 parent ea6fabc commit 4d35768
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
CIRQ_PYPI_TOKEN: ${{ secrets.CIRQ_PYPI_TOKEN }}
CIRQ_TEST_PYPI_TOKEN: ${{ secrets.CIRQ_TEST_PYPI_TOKEN }}
run: |
dev_tools/packaging/create_pypirc.sh
envsubst < dev_tools/packaging/pypirc_template > $HOME/.pypirc
- name: Build and publish
run: |
export CIRQ_PRE_RELEASE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)
Expand Down
13 changes: 0 additions & 13 deletions dev_tools/packaging/create_pypirc.sh

This file was deleted.

7 changes: 7 additions & 0 deletions dev_tools/packaging/pypirc_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[pypi]
username = __token__
password = ${CIRQ_PYPI_TOKEN}

[testpypi]
username = __token__
password = ${CIRQ_TEST_PYPI_TOKEN}

0 comments on commit 4d35768

Please sign in to comment.