diff --git a/.github/workflows/build-chrome-ext.yml b/.github/workflows/build-chrome-ext.yml index 8127f23ae..595ad4388 100644 --- a/.github/workflows/build-chrome-ext.yml +++ b/.github/workflows/build-chrome-ext.yml @@ -31,6 +31,9 @@ jobs: - name: Build Chrome Extension run: bash ./scripts/build_chrome_extension.sh + - name: List build directory contents + run: ls -R build + - name: Get Version from pubspec.yaml id: get_version run: | @@ -40,12 +43,16 @@ jobs: - name: Zip build folder run: | - cd build/chrome-extension - zip -r ../chrome-extension-${{ steps.get_version.outputs.version_app }}.zip ./ - working-directory: build/chrome-extension + if [ -d build/chrome-extension ]; then + cd build/chrome-extension + zip -r ../../chrome-extension-${{ steps.get_version.outputs.version_app }}.zip ./ + else + echo "Directory build/chrome-extension does not exist" + exit 1 + fi - name: Upload artifact uses: actions/upload-artifact@v4 with: name: chrome-extension-build-${{ steps.get_version.outputs.version_app }} - path: build/chrome-extension-${{ steps.get_version.outputs.version_app }}.zip + path: chrome-extension-${{ steps.get_version.outputs.version_app }}.zip