Skip to content

Commit 114731e

Browse files
authored
Add release creation to workflow
1 parent 9418ce2 commit 114731e

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Deploy to PyPI
22

33
# Controls when the workflow will run
44
on:
5-
# Triggers the workflow on new releases
6-
release:
7-
types: [published]
5+
# Triggers the workflow on tag push
6+
push:
7+
tags:
8+
- "v*"
89

910
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1011
jobs:
@@ -29,3 +30,8 @@ jobs:
2930
build: clean sdist -d dist/
3031
# `pip` command to run ("true" is a shortcut for "wheel -w <dist_dir> --no-deps .")
3132
pip: true
33+
34+
- name: Github Release
35+
uses: softprops/action-gh-release@v1
36+
with:
37+
files: dist/*

0 commit comments

Comments
 (0)