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: |