Skip to content

Commit fad8cc7

Browse files
authored
Update dotnet-core.yml
1 parent b479fb5 commit fad8cc7

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ jobs:
3434
- name: Create release
3535
id: create_release
3636
if: success() && steps.publish_nuget.outputs.version != ''
37-
uses: actions/create-release@v1
38-
with:
39-
tag_name: ${{ steps.publish_nuget.outputs.version }}
40-
release_name: ${{ steps.publish_nuget.outputs.version }}
41-
body: ""
37+
run: gh release create ${{ steps.publish_nuget.outputs.version }} --generate-notes
4238
env:
4339
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4440
- name: Publish dotnet-json executables
@@ -49,31 +45,16 @@ jobs:
4945
dotnet publish -c Release -o ./output/osx --self-contained true -r osx-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true
5046
- name: Upload windows release asset
5147
if: success() && steps.publish_nuget.outputs.version != ''
52-
uses: actions/upload-release-asset@v1
53-
with:
54-
upload_url: ${{ steps.create_release.outputs.upload_url }}
55-
asset_path: ./output/win/dotnet-json.exe
56-
asset_name: dotnet-json.exe
57-
asset_content_type: application/octet-stream
48+
run: gh release upload ${{ steps.publish_nuget.outputs.version }} ./output/win/dotnet-json.exe#dotnet-json.exe
5849
env:
5950
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6051
- name: Upload linux release asset
6152
if: success() && steps.publish_nuget.outputs.version != ''
62-
uses: actions/upload-release-asset@v1
63-
with:
64-
upload_url: ${{ steps.create_release.outputs.upload_url }}
65-
asset_path: ./output/linux/dotnet-json
66-
asset_name: dotnet-json-linux
67-
asset_content_type: application/octet-stream
53+
run: gh release upload ${{ steps.publish_nuget.outputs.version }} ./output/linux/dotnet-json#dotnet-json-linux
6854
env:
6955
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7056
- name: Upload osx release asset
7157
if: success() && steps.publish_nuget.outputs.version != ''
72-
uses: actions/upload-release-asset@v1
73-
with:
74-
upload_url: ${{ steps.create_release.outputs.upload_url }}
75-
asset_path: ./output/osx/dotnet-json
76-
asset_name: dotnet-json-osx
77-
asset_content_type: application/json
58+
run: gh release upload ${{ steps.publish_nuget.outputs.version }} ./output/osx/dotnet-json.exe#dotnet-json-osx
7859
env:
7960
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)