Skip to content

Commit d8282ec

Browse files
committed
Try with trusted publisher
1 parent 964f392 commit d8282ec

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
needs: [compile, test]
4141
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
4242
runs-on: ubuntu-latest
43+
permissions:
44+
id-token: write
4345
steps:
4446
- name: Checkout repo
4547
uses: actions/checkout@v4
@@ -52,10 +54,7 @@ jobs:
5254
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
5355
- name: Install dependencies
5456
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

0 commit comments

Comments
 (0)