Skip to content

Commit 7a96cb4

Browse files
committed
Added capability to publish binaries to a release
1 parent 1b01b7f commit 7a96cb4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/publishartifact.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@ jobs:
3030
chmod +x ./${{inputs.binary-name}}
3131
echo "Uploading ${{inputs.binary-name}} to Nexus: $targetUrl"
3232
while (Test-Path Alias:curl) {Remove-Item Alias:curl} #remove the alias binding from curl to Invoke-WebRequest
33-
curl "-u${{secrets.NEXUSAUTHENTICATION}}" -T ./${{inputs.binary-name}} $targetUrl
33+
curl "-u${{secrets.NEXUSAUTHENTICATION}}" -T ./${{inputs.binary-name}} $targetUrl
34+
35+
- name: Upload binaries to release
36+
uses: svenstaro/upload-release-action@2.9.0
37+
with:
38+
repo_token: ${{ secrets.GITHUB_TOKEN }}
39+
file: ./${{inputs.binary-name}}
40+
asset_name: ${{inputs.binary-name}}
41+
tag: ${{ github.ref }}
42+
overwrite: true
43+

0 commit comments

Comments
 (0)