From 2b23d6bf45befb0a03c9e51a35759741bc32ed4f Mon Sep 17 00:00:00 2001 From: sandcha Date: Mon, 29 Apr 2024 11:43:05 +0200 Subject: [PATCH] Use PyPi token for deployment https://github.com/openfisca/country-template/pull/144 --- .github/workflows/workflow.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index f1567106..881c1e47 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -133,8 +133,7 @@ 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_TOKEN_OPENFISCA_BOT: ${{ secrets.PYPI_TOKEN_OPENFISCA_BOT }} steps: - uses: actions/checkout@v2 with: @@ -156,6 +155,6 @@ jobs: path: dist key: release-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ github.sha }} - name: Upload a Python package to PyPi - run: twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD + run: twine upload dist/* --username __token__ --password $PYPI_TOKEN_OPENFISCA_BOT - name: Publish a git tag run: "${GITHUB_WORKSPACE}/.github/publish-git-tag.sh"