Skip to content

Commit 283be2c

Browse files
committed
ci: testing on pypi publish; removing unneeded setup.py
1 parent 574be22 commit 283be2c

File tree

2 files changed

+20
-48
lines changed

2 files changed

+20
-48
lines changed

.github/workflows/build-on-tag.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,23 @@ jobs:
7474
- name: Publish Wheel
7575
uses: softprops/action-gh-release@v2
7676
with:
77-
files: ./dist/*
77+
files: ./dist/*
78+
79+
publish_on_pypi:
80+
name: Publish on PyPI
81+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
82+
runs-on: ubuntu-latest
83+
needs: [ build_sdist, build_wheels ]
84+
environment:
85+
name: pypi
86+
url: https://pypi.org/p/pyquadkey2
87+
permissions:
88+
id-token: write
89+
steps:
90+
- name: Retrieve dists
91+
uses: actions/download-artifact@v4
92+
with:
93+
path: dist/
94+
merge-multiple: true
95+
- name: Publish on PyPI
96+
uses: pypa/gh-action-pypi-publish@release/v1

setup.py

-47
This file was deleted.

0 commit comments

Comments
 (0)