diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 658d326..a5cd1d2 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -132,9 +132,6 @@ jobs: runs-on: ubuntu-20.04 needs: [ check-for-functional-changes ] if: needs.check-for-functional-changes.outputs.status == 'success' - env: - PYPI_USERNAME: openfisca-bot - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} steps: - uses: actions/checkout@v2 with: @@ -156,6 +153,6 @@ jobs: path: dist 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 __token__ --password ${{ secrets.PYPI_TOKEN_OPENFISCA_BOT }} - name: Publish a git tag run: "${GITHUB_WORKSPACE}/.github/publish-git-tag.sh" diff --git a/CHANGELOG.md b/CHANGELOG.md index be60df4..161c058 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### 1.3.14 - [#55](https://github.com/openfisca/extension-template/pull/55) + +* Technical improvement. +* Details: + - Use PyPi token for authentication on CI `deploy` job + - Allows for Python package upload since the 2FA enforcement on PyPi + ### 1.3.13 - [#53](https://github.com/openfisca/extension-template/pull/53) * Minor change. diff --git a/setup.py b/setup.py index 3a7c586..625a4f3 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name = "OpenFisca-Extension-Template", - version = "1.3.13", + version = "1.3.14", author = "OpenFisca Team", author_email = "contact@openfisca.org", classifiers = [