Skip to content

Commit

Permalink
fix: compressing files ci step
Browse files Browse the repository at this point in the history
  • Loading branch information
GuihVicentini committed Dec 16, 2023
1 parent bfb7319 commit 315fce1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ jobs:

- name: Compress files
run: |
for folder in bin/*/; do
ls -al
for folder in */; do
folder_name=$(basename "$folder")
tar -czf "${folder_name}.tar.gz" "$folder_name" && echo "Created ${folder_name}.tar.gz"
tar -czvf "${folder_name}.tar.gz" "$folder_name" && echo "Created ${folder_name}.tar.gz"
done
working-directory: bin/

# - name: Publish Release
# uses: ncipollo/release-action@v1
Expand Down
3 changes: 1 addition & 2 deletions dupliwise/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
| | | | | | | '_ \| | \ \ /\ / / / __|/ _ \
| |_| | |_| | |_) | | |\ V V /| \__ \ __/
|____/ \__,_| .__/|_|_| \_/\_/ |_|___/\___|
|_|
${application.title} ${application.version}
|_|
3 changes: 1 addition & 2 deletions quickgen/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
| | | | | | | |/ __| |/ / _` |/ _ \ '_ \
| |_| | |_| | | (__| < (_| | __/ | | |
\__\_\\__,_|_|\___|_|\_\__, |\___|_| |_|
|___/
${application.title} ${application.version}
|___/
11 changes: 7 additions & 4 deletions tar-folders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ if [ -z "$1" ]; then
exit 1
fi

# Iterate through each folder in the specified directory
for folder in "$1"/*/; do
# Change to the specified directory
cd "$1" || exit 1

# Iterate through each subdirectory
for folder in */; do
folder_name=$(basename "$folder")
tar czf "${folder_name}.tar.gz" "$folder_name" && echo "Created ${folder_name}.tar.gz"
done
tar -czf "${folder_name}.tar.gz" "$folder_name" && echo "Created ${folder_name}.tar.gz"
done

0 comments on commit 315fce1

Please sign in to comment.