Skip to content

Commit 601ba3e

Browse files
committed
Fix asset path retrieval in release workflow to support version wildcard matching
1 parent a0bf4f9 commit 601ba3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Get Path of Artifact
5858
id: getpath
5959
run: |
60-
ASSET_PATH=$(ls target/*/debian/sectora_${{ needs.release.outputs.version }}_${{ matrix.arch }}.deb | head -n 1)
60+
ASSET_PATH=$(ls target/*/debian/sectora_${{ needs.release.outputs.version }}*_${{ matrix.arch }}.deb | head -n 1)
6161
echo "asset_path=$ASSET_PATH" >> $GITHUB_OUTPUT
6262
- name: Upload Release Asset
6363
uses: actions/upload-release-asset@v1
@@ -66,5 +66,5 @@ jobs:
6666
with:
6767
upload_url: ${{ needs.release.outputs.upload }}
6868
asset_path: ${{ steps.getpath.outputs.asset_path }}
69-
asset_name: sectora_${{ needs.release.outputs.version }}_${{ matrix.arch }}.deb
69+
asset_name: basename(${{ steps.getpath.outputs.asset_path }})
7070
asset_content_type: application/vnd.debian.binary-package

0 commit comments

Comments
 (0)