ci/linux: create dist artifact only if dist archive was built

Fixes: 512c88ce ("ci/linux: add dist check")
This commit is contained in:
Azat Khuzhin 2020-07-05 13:55:53 +03:00
parent f6bfa8b3e3
commit e9a6b12769

View File

@ -119,7 +119,7 @@ jobs:
name: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-build
path: build
- uses: actions/upload-artifact@v1
if: failure()
if: failure() && matrix.EVENT_MATRIX == 'DIST'
with:
name: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-dist
path: dist
@ -204,7 +204,7 @@ jobs:
name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-build
path: build
- uses: actions/upload-artifact@v1
if: failure()
if: failure() && matrix.EVENT_MATRIX == 'DIST'
with:
name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-dist
path: dist