Skip to content

Commit

Permalink
Fix issue with assets weird prefix on release
Browse files Browse the repository at this point in the history
  • Loading branch information
donhardman committed Jun 6, 2024
1 parent 883a158 commit 3afa348
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,10 @@ jobs:

- id: vars
run: |
asset_path=$(ls ./artifacts/*.${{ matrix.pkg }} | head -n 1)
echo "upload_url=$(cat upload_url.txt)" >> $GITHUB_OUTPUT
echo "asset_name=$(ls ./artifacts/*.${{ matrix.pkg }} | head -n 1)" >> $GITHUB_OUTPUT
echo "asset_path=$asset_path" >> $GITHUB_OUTPUT
echo "asset_name=$(basename $asset_path)" >> $GITHUB_OUTPUT
- name: Upload Release Asset
id: upload-release-asset
Expand All @@ -590,7 +592,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.vars.outputs.upload_url }}
asset_path: ${{ steps.vars.outputs.asset_name }}
asset_path: ${{ steps.vars.outputs.asset_path }}
asset_name: ${{ steps.vars.outputs.asset_name }}
asset_content_type: ${{ matrix.asset_content_type }}

Expand Down Expand Up @@ -635,8 +637,10 @@ jobs:
shell: bash
- id: vars
run: |
asset_path=$(ls ./artifacts/*.${{ matrix.pkg }} | head -n 1)
echo "upload_url=$(cat upload_url.txt)" >> $GITHUB_OUTPUT
echo "asset_name=$(ls ./artifacts/*.${{ matrix.pkg }} | head -n 1)" >> $GITHUB_OUTPUT
echo "asset_path=$asset_path" >> $GITHUB_OUTPUT
echo "asset_name=$(basename $asset_path)" >> $GITHUB_OUTPUT
- name: Upload Release Asset
id: upload-release-asset
Expand All @@ -645,7 +649,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.vars.outputs.upload_url }}
asset_path: ${{ steps.vars.outputs.asset_name }}
asset_path: ${{ steps.vars.outputs.assetn_path }}
asset_name: ${{ steps.vars.outputs.asset_name }}
asset_content_type: ${{ matrix.asset_content_type }}

Expand Down

0 comments on commit 3afa348

Please sign in to comment.