Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhael-Danilov authored Jan 2, 2025
1 parent b892464 commit a14c3ff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,22 @@ jobs:
- name: Build Desktop Bundles with Gradle
run: ./gradlew -c settings.desktop.gradle buildAllBundles --no-configuration-cache

- name: Verify dist directory
id: verify-dist
run: |
if [ -d dist ] && [ "$(ls -A dist)" ]; then
echo "dist directory exists and is not empty"
else
echo "dist directory is empty or does not exist"
exit 1
fi
- name: List Desktop Bundles
id: list-bundles
run: |
echo "Bundles found:"
ls -1 dist/
echo "::set-output name=bundles::$(ls -1 dist/ | jq -R -s -c 'split("\n")[:-1]')"
echo "::set-output name=bundles::[\"$(ls -1 dist/ | tr '\n' ',' | sed 's/,$//' | sed 's/,/","/g')\"]"
upload-desktop:
name: Upload Desktop Bundles
Expand Down

0 comments on commit a14c3ff

Please sign in to comment.