Skip to content

Commit

Permalink
download release artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Sep 13, 2024
1 parent 2125fe1 commit 5d32f23
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 5d32f23

Please sign in to comment.