Skip to content

Commit

Permalink
Update the publish workflow (#2101)
Browse files Browse the repository at this point in the history
  • Loading branch information
samet-akcay committed May 31, 2024
1 parent 76fc980 commit 3fe5584
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import --batch --yes --no-tty
- name: Build and sign distribution
pip install build twine
- name: Build the python package
run: |
python setup.py sdist bdist_wheel
gpg --batch --yes --no-tty --pinentry-mode loopback --detach-sign -a dist/*.tar.gz
gpg --batch --yes --no-tty --pinentry-mode loopback --detach-sign -a dist/*.whl
python -m build
- name: Upload to PyPI
run: twine upload dist/*
env:
Expand Down

0 comments on commit 3fe5584

Please sign in to comment.