Skip to content

Commit 3c146a7

Browse files
committed
Upload wheels to release
1 parent b72df38 commit 3c146a7

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/python-publish.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ permissions:
1717

1818
jobs:
1919
build:
20-
needs: prepare-release
2120
name: Build distribution 📦
2221
runs-on: ubuntu-latest
2322

@@ -94,3 +93,22 @@ jobs:
9493
path: dist/
9594
- name: Publish distribution 📦 to PyPI
9695
uses: pypa/gh-action-pypi-publish@03f86fee9ac21f854951f5c6e2a02c2a1324aec7 # v1
96+
97+
release:
98+
if: github.ref_type == 'tag'
99+
runs-on: ubuntu-latest
100+
needs:
101+
- build
102+
permissions:
103+
contents: write
104+
security-events: write
105+
steps:
106+
- name: Upload wheels to release
107+
uses: softprops/action-gh-release@5122b4edc95f85501a71628a57dc180a03ec7588 # v2.5.0
108+
with:
109+
tag_name: ${{ github.ref_name }}
110+
name: ${{ github.ref_name }}
111+
draft: true
112+
files: dist/
113+
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)