Skip to content

Commit

Permalink
ci: use tokens on PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Dec 31, 2023
1 parent b1a758e commit d910da9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/python.yaml
Expand Up @@ -144,7 +144,6 @@ jobs:
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_TEST_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }}
- name: New release published
Expand Down
2 changes: 1 addition & 1 deletion ci-prepare-cmd.sh
Expand Up @@ -28,4 +28,4 @@ poetry config --list

# Hide the password
set +x
poetry publish --repository testpypi --username "$PYPI_USERNAME" --password "$PYPI_TEST_PASSWORD"
poetry publish --repository testpypi --username __token__ --password "$PYPI_TEST_PASSWORD"
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -19,7 +19,7 @@
"@semantic-release/exec",
{
"prepareCmd": "bash ./ci-prepare-cmd.sh ${nextRelease.version}",
"publishCmd": "poetry build && poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD"
"publishCmd": "poetry build && poetry publish --username __token__ --password $PYPI_PASSWORD"
}
],
"@semantic-release/github",
Expand Down

0 comments on commit d910da9

Please sign in to comment.