Skip to content

Commit 5593b08

Browse files
committed
Ensure ./artifacts/github-release-archives exists before creating archive
1 parent 9e5031d commit 5593b08

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/dotnet_selfcontained.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ jobs:
4242
- name: Create Archive
4343
run: |
4444
TARGET_DIR="./artifacts/binaries/${{ matrix.os }}"
45-
OUTPUT_BASE="./artifacts/github-release-archives/busly-cli-${{ github.event.release.tag_name }}-${{ matrix.os }}"
45+
ARCHIVE_DIR="./artifacts/github-release-archives"
46+
OUTPUT_BASE="${ARCHIVE_DIR}/busly-cli-${{ github.event.release.tag_name }}-${{ matrix.os }}"
47+
48+
# Ensure the output directory exists
49+
mkdir -p "$(dirname "$ARCHIVE_DIR")"
4650
4751
if [[ "${{ matrix.os }}" == "win-x64" ]]; then
4852
zip -r "${OUTPUT_BASE}.zip" . -C "$TARGET_DIR"

0 commit comments

Comments
 (0)