Skip to content

Commit 3fe5584

Browse files
authored
Update the publish workflow (#2101)
1 parent 76fc980 commit 3fe5584

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/publish.yml

+3-11
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,10 @@ jobs:
1515
- name: Install dependencies
1616
run: |
1717
python -m pip install --upgrade pip
18-
pip install setuptools wheel twine
19-
20-
- name: Import GPG Key
21-
run: |
22-
echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import --batch --yes --no-tty
23-
24-
- name: Build and sign distribution
18+
pip install build twine
19+
- name: Build the python package
2520
run: |
26-
python setup.py sdist bdist_wheel
27-
gpg --batch --yes --no-tty --pinentry-mode loopback --detach-sign -a dist/*.tar.gz
28-
gpg --batch --yes --no-tty --pinentry-mode loopback --detach-sign -a dist/*.whl
29-
21+
python -m build
3022
- name: Upload to PyPI
3123
run: twine upload dist/*
3224
env:

0 commit comments

Comments
 (0)