Skip to content

Commit

Permalink
Ajoute le permission d'écrire et précise testPypi comme destination
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-CodeWorks committed Jan 4, 2024
1 parent 9207bcb commit bcd4992
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
matrix:
openfisca-dependencies: [maximal]
needs: [ build ]
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -71,5 +74,8 @@ jobs:
key: release-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-${{ matrix.openfisca-dependencies }}
- name: Upload a Python package to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
# With statement only to specify testPy destination, Pypi is default
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish a git tag
run: "${GITHUB_WORKSPACE}/.github/publish-git-tag.sh"

0 comments on commit bcd4992

Please sign in to comment.