From 9c09390e8a557355deeba61dbf0024627915b0ee Mon Sep 17 00:00:00 2001 From: Max Narvaez Date: Tue, 28 May 2024 14:28:20 -0500 Subject: [PATCH] Run test on prereleases --- .github/workflows/publish-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 1f22eef..138e4f3 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -2,7 +2,8 @@ name: publish-release on: release: - types: [ created ] + types: + - published jobs: @@ -30,6 +31,7 @@ jobs: publish-test: runs-on: ubuntu-latest needs: package + if: github.event.release.prerelease environment: name: testpypi url: https://test.pypi.org/p/animatedledstrip-client @@ -50,6 +52,7 @@ jobs: # publish: # runs-on: ubuntu-latest # needs: package +# if: "!github.event.release.prerelease" # environment: # name: pypi # url: https://pypi.org/p/animatedledstrip-client