Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
ci: Check if components folder exists before trying to tar it.
Browse files Browse the repository at this point in the history
Currently, the build fails when the build stage doesn't build the components library.
In case there is no dist folder with components that can be packed.
So we have to pack it only when the folder exists.

Fixes #420
  • Loading branch information
Lukas Holzer committed Jan 16, 2020
1 parent 1797ed9 commit 451d8a9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,14 @@ jobs:
steps:
- attach_workspace:
at: ~/barista
- run: cd dist && tar czf components.tar.gz ./components/
- run:
name: Create components package if it exists
command: |
if [[ -d ./dist/components ]];
then
cd dist
tar czf components.tar.gz ./components/
fi
- store_artifacts:
path: dist/components.tar.gz
destination: barista-components
Expand Down

0 comments on commit 451d8a9

Please sign in to comment.