From f9daba065f39ed0549da4c932d7e0c020242ab78 Mon Sep 17 00:00:00 2001 From: Khalil Estell Date: Sat, 15 Jul 2023 08:09:44 -0700 Subject: [PATCH] :construction_worker: Skip demo builds if demos/ doesn't exist --- .github/workflows/platform_deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/platform_deploy.yml b/.github/workflows/platform_deploy.yml index 1115dd3..930ec62 100644 --- a/.github/workflows/platform_deploy.yml +++ b/.github/workflows/platform_deploy.yml @@ -91,7 +91,14 @@ jobs: - name: 📦 Create `Release` package for ${{ inputs.profile }} run: conan create . -pr ${{ inputs.profile }} -s build_type=Release -b missing + - name: Check if `demos/` directory existence + id: check_demos_dir + uses: andstor/file-existence-action@v1 + with: + files: "demos/" + - name: 🏗️ Build demos for ${{ inputs.profile }} + if: steps.check_demos_dir.outputs.files_exists == 'true' run: conan build demos -pr ${{ inputs.profile }} -s build_type=MinSizeRel - name: 🆙 Upload package to `libhal` repo