Skip to content

Commit 47fa06e

Browse files
committed
Attempting to fix github release again
1 parent 55e63d5 commit 47fa06e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/dotnet_selfcontained.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,15 @@ jobs:
4646
OUTPUT_BASE="${ARCHIVE_DIR}/busly-cli-${{ github.event.release.tag_name }}-${{ matrix.os }}"
4747
4848
# Ensure the output directory exists
49-
mkdir -p "$(dirname "$ARCHIVE_DIR")"
49+
mkdir -p "$ARCHIVE_DIR"
50+
51+
# Change to the target directory so archive contains only files
52+
cd "$TARGET_DIR"
5053
5154
if [[ "${{ matrix.os }}" == "win-x64" ]]; then
52-
zip -r "${OUTPUT_BASE}.zip" . -C "$TARGET_DIR"
55+
zip -r "$OUTPUT_BASE.zip" .
5356
else
54-
tar -czf "${OUTPUT_BASE}.tar.gz" -C "$TARGET_DIR" .
57+
tar -czf "$OUTPUT_BASE.tar.gz" .
5558
fi
5659
5760
- name: Upload Release Asset

0 commit comments

Comments
 (0)