ci: fix the tag detection

This commit is contained in:
Amin Yahyaabadi 2022-10-19 19:13:45 -07:00
parent a547034e76
commit c2b8f83888
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ jobs:
pnpm run pack.exe
- name: Upload Artifacts
if: ${{ (github.event_name == 'tag') && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
uses: actions/upload-artifact@v3
with:
path: |
@ -85,7 +85,7 @@ jobs:
Release:
needs: Test
if: ${{ (github.event_name == 'release') }}
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
steps:
- name: Download Artifacts