Skip to content

Commit 7ead63c

Browse files
committed
Add github release step
1 parent a58e4a9 commit 7ead63c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build-n-publish.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: "Publish Python distributions to PyPI and TestPyPI"
33

44
on:
55
push:
6-
tags: ["*"]
6+
tags:
7+
- "v*"
78

89
jobs:
910
build-n-publish:
@@ -22,7 +23,12 @@ jobs:
2223

2324
- name: Build a binary wheel and a source tarball
2425
run: python -m build --sdist --wheel --outdir dist/
25-
26+
27+
- name: Release
28+
uses: softprops/action-gh-release@v1
29+
with:
30+
files: dist/*
31+
2632
- name: "Publish distribution to PyPI"
2733
if: 'startsWith(github.ref, ''refs/tags'')'
2834
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)