Skip to content

Commit 9c09390

Browse files
committed
Run test on prereleases
1 parent 1ca1893 commit 9c09390

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: publish-release
22

33
on:
44
release:
5-
types: [ created ]
5+
types:
6+
- published
67

78

89
jobs:
@@ -30,6 +31,7 @@ jobs:
3031
publish-test:
3132
runs-on: ubuntu-latest
3233
needs: package
34+
if: github.event.release.prerelease
3335
environment:
3436
name: testpypi
3537
url: https://test.pypi.org/p/animatedledstrip-client
@@ -50,6 +52,7 @@ jobs:
5052
# publish:
5153
# runs-on: ubuntu-latest
5254
# needs: package
55+
# if: "!github.event.release.prerelease"
5356
# environment:
5457
# name: pypi
5558
# url: https://pypi.org/p/animatedledstrip-client

0 commit comments

Comments
 (0)