Skip to content

Commit

Permalink
Modifie le job de déploiement dans la CI pour autoriser le trusted pu…
Browse files Browse the repository at this point in the history
…blishing
  • Loading branch information
Allan-CodeWorks committed Jan 15, 2024
1 parent 4e9f539 commit 5610997
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ jobs:
openfisca-dependencies: [maximal]
needs: [ check-for-functional-changes ]
if: needs.check-for-functional-changes.outputs.status == 'success'
env:
PYPI_USERNAME: openfisca-bot
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -131,6 +131,6 @@ jobs:
path: dist
key: release-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-${{ matrix.openfisca-dependencies }}
- name: Upload a Python package to PyPi
run: twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish a git tag
run: "${GITHUB_WORKSPACE}/.github/publish-git-tag.sh"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Topic :: Scientific/Engineering :: Information Analysis",
],
description="Plugin OpenFisca pour les aides sociales de la mairie de Paris",
long_description_content_type='text/markdown',
keywords="benefit france paris microsimulation social tax",
license="http://www.fsf.org/licensing/licenses/agpl-3.0.html",

Expand Down

0 comments on commit 5610997

Please sign in to comment.