Skip to content

Commit c2b8f83

Browse files
committed
ci: fix the tag detection
1 parent a547034 commit c2b8f83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
pnpm run pack.exe
7676
7777
- name: Upload Artifacts
78-
if: ${{ (github.event_name == 'tag') && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
78+
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
7979
uses: actions/upload-artifact@v3
8080
with:
8181
path: |
@@ -85,7 +85,7 @@ jobs:
8585

8686
Release:
8787
needs: Test
88-
if: ${{ (github.event_name == 'release') }}
88+
if: startsWith(github.ref, 'refs/tags/')
8989
runs-on: ubuntu-22.04
9090
steps:
9191
- name: Download Artifacts

0 commit comments

Comments
 (0)