mirror of https://github.com/aminya/setup-cpp
ci: fix the tag detection
This commit is contained in:
parent
a547034e76
commit
c2b8f83888
|
@ -75,7 +75,7 @@ jobs:
|
||||||
pnpm run pack.exe
|
pnpm run pack.exe
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- 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
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
@ -85,7 +85,7 @@ jobs:
|
||||||
|
|
||||||
Release:
|
Release:
|
||||||
needs: Test
|
needs: Test
|
||||||
if: ${{ (github.event_name == 'release') }}
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Download Artifacts
|
- name: Download Artifacts
|
||||||
|
|
Loading…
Reference in New Issue