Skip to content

Commit 19dd955

Browse files
andamianAdrian Damian
andauthored
Changed pypi publishing (#219)
Co-authored-by: Adrian Damian <[email protected]>
1 parent 80b4ed1 commit 19dd955

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/cibuild.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
name: Build and publish to PyPI
7474
needs: style_n_coverage
7575
runs-on: ubuntu-latest
76+
permissions:
77+
# IMPORTANT: this permission is mandatory for trusted publishing
78+
id-token: write
7679
if: contains(github.ref, '=')
7780
steps:
7881
- uses: actions/checkout@v2
@@ -96,11 +99,5 @@ jobs:
9699
cd ${{ env.repo_name }}
97100
python -m pip install --upgrade pip
98101
pip install setuptools wheel twine
99-
- name: Build and publish
100-
env:
101-
TWINE_USERNAME: ${{ secrets.PYPI_PUBLISH_USER }}
102-
TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISH_PWORD }}
103-
run: |
104-
cd ${{ env.repo_name }}
105-
python setup.py sdist bdist_wheel
106-
twine upload --skip-existing dist/*
102+
- name: Publish package distributions to PyPI
103+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)