diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index fd42c3db3..e409c5fb2 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -98,6 +98,6 @@ jobs:
           asset_path: ./build/${{ env.RELEASE_NAME }}.zip
           asset_name: ${{ env.RELEASE_NAME }}.zip
           asset_content_type: application/zip
-      if: release.published == true
+      if: github.event_name == 'release' && github.event.action == 'published'