Skip to content

Commit d6bbf9f

Browse files
committed
ci: try again to fix the deploy ci job
1 parent 9e586e7 commit d6bbf9f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/test-and-deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ jobs:
133133
runs-on: ubuntu-latest
134134
needs: [test, build-linux, build]
135135
if: github.event_name == 'release'
136+
permissions:
137+
contents: read
138+
id-token: write
136139
steps:
137140
- name: Checkout
138141
uses: actions/checkout@v4
@@ -157,8 +160,8 @@ jobs:
157160
run: |
158161
ls -R dist
159162
163+
- name: Verify distributions
164+
run: twine check dist/*
165+
160166
- name: Upload to PyPI using twine
161-
run: twine upload --skip-existing dist/*
162-
env:
163-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
164-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
167+
run: twine upload dist/*

0 commit comments

Comments
 (0)