Skip to content

Commit 7309198

Browse files
[ci] upload-release-artifact is EXTREMELY fussy
1 parent 72f3381 commit 7309198

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,20 @@
4242
"release_name": "${{ github.ref }}",
4343
},
4444
},
45+
{
46+
"name": "Ugh",
47+
"id": "ugh",
48+
"run": "echo \"::set-output name=basename::`ls tag_build/*.tar.gz | awk -F/ '{print $2}'`\""
49+
},
4550
{
4651
"name": "Upload release tarball",
4752
"uses": "actions/upload-release-asset@v1",
4853
"env": { "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" },
4954
"with": {
5055
"upload_url": "${{ steps.cr.outputs.upload_url }}",
51-
"asset_path": "tag_build/*.tar.gz",
56+
"asset_path": "tag_build/${{ steps.ugh.outputs.basename }}",
57+
"asset_name": "${{ steps.ugh.outputs.basename }}",
58+
"asset_content_type": "application/octet-stream",
5259
},
5360
},
5461
{
@@ -57,7 +64,9 @@
5764
"env": { "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" },
5865
"with": {
5966
"upload_url": "${{ steps.cr.outputs.upload_url }}",
60-
"asset_path": "tag_build/*.sha*",
67+
"asset_path": "tag_build/${{ steps.ugh.outputs.basename }}.sha512sum",
68+
"asset_name": "${{ steps.ugh.outputs.basename }}.sha512sum",
69+
"asset_content_type": "text/plain",
6170
},
6271
},
6372
],

0 commit comments

Comments
 (0)