From 4f631b0bcc2efabdeeb2cf3b98f0822d3e2366bb Mon Sep 17 00:00:00 2001 From: Core Engine Date: Thu, 16 Jul 2026 14:43:44 +0000 Subject: [PATCH] fix(ci): deploy from published release asset, not cross-run artifact (DAK-7439) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions/download-artifact@v8 with a cross-workflow run-id fails with digest-mismatch when pulling the Release build artifact into Deploy Binary. Download the published release asset via gh release download instead — robust, no cross-run digest check. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/deploy.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a0259c5..76fa87f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,12 +14,14 @@ jobs: # Only deploy when the Release workflow succeeded if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - name: Download Linux binary from release - uses: actions/download-artifact@v8 - with: - name: artifacts-x86_64-unknown-linux-gnu - run-id: ${{ github.event.workflow_run.id }} - github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Download Linux binary from published release asset + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + TAG="${{ github.event.workflow_run.head_branch }}" + echo "Downloading dk-x86_64-unknown-linux-gnu.tar.gz from release $TAG" + gh release download "$TAG" --repo "${{ github.repository }}" \ + --pattern 'dk-x86_64-unknown-linux-gnu.tar.gz' --clobber - name: Extract binary from cargo-dist archive run: |