Skip to content

Commit

Permalink
fix: is dir
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef authored Dec 15, 2023
1 parent 595bc4f commit 82cc7cf
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jobs:
uses: actions/download-artifact@v4
- name: Uncompress all artifacts
run: |
ls -al
# Define the temporary and release directories
tmp_dir="massa_tmp"
release_dir="massa_release"
Expand All @@ -110,15 +111,19 @@ jobs:
mkdir -p "$release_dir"
# Extract files from the temporary directory to the release directory
for file in "$tmp_dir"/*; do
if [[ "$file" == *.zip ]]; then
unzip "$file" -d "$release_dir/"
elif [[ "$file" == *.tar.gz ]]; then
tar -xzf "$file" -C "$release_dir/"
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
fi
done
# Remove the temporary directory
# Move back to the original directory and remove the temporary directory
cd ..
rm -rf "$tmp_dir"
- name: Generate checksums file
Expand Down

0 comments on commit 82cc7cf

Please sign in to comment.