From e2363121be10da87035cdc94996760b0157b0f76 Mon Sep 17 00:00:00 2001 From: Dakera Ops Date: Thu, 3 Sep 2026 08:04:08 +0000 Subject: [PATCH] fix(deploy): strip-components=1 for cargo-dist archive extraction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cargo-dist archives dk-{target}.tar.gz with a top-level subdirectory dk-{target}/ — the binary is at dk-{target}/dk, not at root. Add --strip-components=1 so `chmod +x dk` finds the binary. Broke in v0.7.1 when artifact names changed from dakera-cli-*.tar.xz to dk-*.tar.gz (PR#126). Co-Authored-By: Paperclip --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 25f4a25..11dde75 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: - name: Extract binary from cargo-dist archive run: | - tar -xzf dk-x86_64-unknown-linux-gnu.tar.gz + tar -xzf dk-x86_64-unknown-linux-gnu.tar.gz --strip-components=1 chmod +x dk - name: Upload binary to server