Skip to content

Commit ad37cc0

Browse files
use token to upload to pypi
1 parent c8f7ed7 commit ad37cc0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: .github/workflows/release-main.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ jobs:
2222
python -m pip install --upgrade pip
2323
pip install setuptools wheel twine
2424
- name: Build and publish
25-
env:
26-
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
27-
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
2825
run: |
2926
export CIRQ_PRE_RELEASE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)
3027
[[ "$CIRQ_PRE_RELEASE_VERSION" =~ .*dev.* ]] && echo "Deploying dev version '$CIRQ_PRE_RELEASE_VERSION'" || (echo "not dev version"; exit 1)
3128
out_dir="${PWD}/dist"
3229
dev_tools/packaging/produce-package.sh ${out_dir} $CIRQ_PRE_RELEASE_VERSION
33-
twine upload "${out_dir}/*"
30+
twine upload "${out_dir}/*" -u __token__ -p ${{ secrets.CIRQ_PYPI_TOKEN }}

0 commit comments

Comments
 (0)