Skip to content

Commit

Permalink
refactor: add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef authored Dec 15, 2023
1 parent f3ffc7e commit ef4b6b7
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
uses: actions/download-artifact@v4
- name: Uncompress all artifacts
run: |
ls -al
pwd && ls -al
# Define the temporary and release directories
tmp_dir="massa_tmp"
release_dir="massa_release"
Expand All @@ -114,16 +114,21 @@ jobs:
cd "$tmp_dir" || exit 1 # Move into the temporary directory
for file in *; do
if [[ -f "$file" ]]; then # Check if it's a file
if [[ "$file" == *.zip ]]; then
unzip "$file" -d "../$release_dir/"
elif [[ "$file" == *.tar.gz ]]; then
tar -xzf "$file" -C "../$release_dir/"
fi
echo "Extracting $file..." # Display current file being processed
case "$file" in
*.zip)
unzip "$file" -d "../$release_dir/"
;;
*.tar.gz)
tar -xzf "$file" -C "../$release_dir/"
;;
*)
echo "Unsupported file format: $file"
;;
esac
fi
done
ls -al
pwd && ls -al
# Move back to the original directory and remove the temporary directory
cd ..
rm -rf "$tmp_dir"
Expand Down

0 comments on commit ef4b6b7

Please sign in to comment.