From 5d32f230d5a0b4bc8b5858184cd5694112e80cae Mon Sep 17 00:00:00 2001 From: Nhan Phan Date: Thu, 12 Sep 2024 22:35:19 -0700 Subject: [PATCH] download release artifact --- .github/workflows/deploy-program.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy-program.yml b/.github/workflows/deploy-program.yml index 25ca774..9d51de9 100644 --- a/.github/workflows/deploy-program.yml +++ b/.github/workflows/deploy-program.yml @@ -153,9 +153,20 @@ jobs: - name: Download Program Builds uses: actions/download-artifact@v4 + if: needs.check_tag.outputs.type == 'ref' with: name: program-builds-${{ inputs.git_ref }} + - name: Download release asset + uses: dsaltares/fetch-gh-release-asset@master + if: needs.check_tag.outputs.type == 'release' + with: + repo: ${{ github.repository }} + version: ${{ inputs.git_ref }} + target: './programs/.bin/${{ env.PROGRAM_NAME }}.so' + file: ${{ env.PROGRAM_NAME }}.so + token: ${{ secrets.GITHUB_TOKEN }} + - name: Deploy Program if: github.event.inputs.dry_run == 'false' run: |