From e3a46e1e2da15be25d38c196d5f2405ee6927c21 Mon Sep 17 00:00:00 2001 From: hndrk <51416554+hendriknielaender@users.noreply.github.com> Date: Sun, 7 Apr 2024 22:50:22 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9cc2fb..8334f5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,11 +20,18 @@ jobs: - name: Build release run: zig build release - - name: Archive executable + - name: Archive executables + run: | + mkdir -p artifacts + for binary in zig-out/*; do + tar -czvf artifacts/$(basename "$binary").tar.gz -C zig-out $(basename "$binary") + done + + - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: zvm - path: zig-out/* + name: zvm-artifacts + path: artifacts/*.tar.gz # This job will need to be modified to handle multiple artifacts create-release: @@ -40,6 +47,7 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v2 with: + name: zvm-artifacts path: artifacts/ - name: List artifacts