Skip to content

Commit

Permalink
ci/linux: create dist artifact only if dist archive was built
Browse files Browse the repository at this point in the history
Fixes: 512c88c ("ci/linux: add dist check")
  • Loading branch information
azat committed Jul 5, 2020
1 parent f6bfa8b commit e9a6b12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit e9a6b12

Please sign in to comment.