Skip to content

Commit

Permalink
make ref build and release have same binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Jan 2, 2025
1 parent e72b3a0 commit 1a43172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./programs/.bin/${{ env.PROGRAM_NAME }}_program.so
asset_name: ${{ env.PROGRAM_NAME }}.so
asset_name: ${{ env.PROGRAM_NAME }}_program.so
asset_content_type: application/octet-stream

# - name: Update latest tag
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
with:
script: |
const tag = "${{ inputs.git_ref }}";
const assetName = "${{ env.PROGRAM_NAME }}.so";
const assetName = "${{ env.PROGRAM_NAME }}_program.so";
// Fetch the release associated with the tag
const release = await github.rest.repos.getReleaseByTag({
Expand All @@ -208,7 +208,7 @@ jobs:
if: needs.check_tag.outputs.type == 'release'
run: |
mkdir -p ${{ github.workspace }}/programs/.bin
curl -L -o ${{ github.workspace }}/programs/.bin/${{ env.PROGRAM_NAME }}.so \
curl -L -o ${{ github.workspace }}/programs/.bin/${{ env.PROGRAM_NAME }}_program.so \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/octet-stream" \
"${{ steps.get_release.outputs.url }}"
Expand Down

0 comments on commit 1a43172

Please sign in to comment.