From 061708919636ce21a756eebb5c8bfdd4484b904c Mon Sep 17 00:00:00 2001 From: Yaoyao Ding Date: Sat, 18 Feb 2023 13:34:17 +0800 Subject: [PATCH] [Workflow] Update publish workflow (#119) . --- .github/workflows/publish-pypi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-pypi.yaml b/.github/workflows/publish-pypi.yaml index 542144f93..265cec8e1 100644 --- a/.github/workflows/publish-pypi.yaml +++ b/.github/workflows/publish-pypi.yaml @@ -69,7 +69,7 @@ jobs: publish: name: Publish to PyPI needs: [publish-tests] # require tests to pass before deploy runs - if: github.event_name == 'release' && github.event.action == 'created' && startsWith(github.event.release.tag_name, 'v') + if: github.event_name == 'release' && github.event.action == 'published' && startsWith(github.event.release.tag_name, 'v') runs-on: ubuntu-latest steps: - name: Checkout source