Skip to content

Commit 81a0874

Browse files
committed
improve ci
1 parent d8818c5 commit 81a0874

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/windows.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126

127127
# publish release
128128
- name: Publish
129-
if: github.event.action == 'published'
129+
if: github.event.action == 'published' && matrix.os == 'windows-2022'
130130
uses: actions/[email protected]
131131
env:
132132
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -137,7 +137,7 @@ jobs:
137137
asset_content_type: application/zip
138138

139139
- name: Publish
140-
if: github.event.action == 'published'
140+
if: github.event.action == 'published' && matrix.os == 'windows-2022'
141141
uses: actions/[email protected]
142142
env:
143143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -148,7 +148,7 @@ jobs:
148148
asset_content_type: application/zip
149149

150150
- name: Publish
151-
if: github.event.action == 'published'
151+
if: github.event.action == 'published' && matrix.os == 'windows-2022'
152152
uses: actions/[email protected]
153153
env:
154154
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)