Skip to content

Commit

Permalink
Edit CI workflow to authenticate to Pypi via API token
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-CodeWorks committed Jan 26, 2024
1 parent 8adab0b commit 94e7194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ jobs:
needs: [ check-for-functional-changes ]
if: needs.check-for-functional-changes.outputs.status == 'success'
env:
PYPI_USERNAME: openfisca-bot
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_USERNAME: __token__
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN_OPENFISCA_BOT }}
CIRCLE_TOKEN: ${{ secrets.CIRCLECI_V1_OPENFISCADOC_TOKEN }} # Personal API token created in CircleCI to grant full read and write permissions

steps:
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
key: release-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}

- name: Upload a Python package to PyPi
run: twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD
run: twine upload dist/* --username $PYPI_USERNAME --password $PYPI_TOKEN

- name: Publish a git tag
run: "${GITHUB_WORKSPACE}/.github/publish-git-tag.sh"
Expand Down

0 comments on commit 94e7194

Please sign in to comment.