Skip to content

Commit

Permalink
Configure pipy
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Oct 6, 2023
1 parent 57a5ec9 commit 536ba77
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,16 @@ jobs:
run: |
python -m tox
- uses: codecov/codecov-action@v3
deploy:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs:
- pre-commit
- tests
environment:
name: pypi
url: https://pypi.org/p/roulier
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Build a binary wheel and a source tarball
run: pipx run build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 536ba77

Please sign in to comment.