|
40 | 40 | needs:[compile, test] |
41 | 41 | if:github.event_name == 'push' && contains(github.ref, 'refs/tags/') |
42 | 42 | runs-on:ubuntu-latest |
| 43 | +permissions: |
| 44 | +id-token:write |
43 | 45 | steps: |
44 | 46 | -name:Checkout repo |
45 | 47 | uses:actions/checkout@v4 |
|
52 | 54 | curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 |
53 | 55 | -name:Install dependencies |
54 | 56 | run:poetry install |
55 | | - -name:Publish to pypi |
56 | | -env: |
57 | | -PYPI_TOKEN:${{ secrets.PYPI_TOKEN }} |
58 | | -run:| |
59 | | - poetry config repositories.remote https://upload.pypi.org/legacy/ |
60 | | - poetry config pypi-token.pypi ${PYPI_TOKEN} |
61 | | - poetry --no-interaction -v publish --build --repository remote |
| 57 | + -name:Build package |
| 58 | +run:poetry --no-interaction -v build |
| 59 | + -name:Publish package |
| 60 | +uses:pypa/gh-action-pypi-publish@release/v1 |