Skip to content

Commit

Permalink
Use PyPi token for authentication on CI deploy job (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandcha committed Jun 28, 2024
2 parents f43998e + 555746b commit 0fa3ab6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 0fa3ab6

Please sign in to comment.