@@ -64,34 +64,16 @@ jobs:
64
64
7z a "$srcArchive" docs\*.md
65
65
7z a "$srcArchive" README.md
66
66
7z a "$srcArchive" LICENSE
67
- - name : Create Release
68
- id : create_release
69
- uses : actions/create-release@v1
70
- env :
71
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67
+ - name : UploadBinary
68
+ uses : softprops/action-gh-release@v1
72
69
with :
73
- tag_name : ${{ github.ref }}
74
- release_name : Release ${{ github.ref }}
75
- draft : false
76
- prerelease : false
77
- - name : Upload Release Asset (zip)
78
- id : upload-release-asset-zip
79
- uses : actions/upload-release-asset@v1
70
+ files : ${{ steps.build.outputs.SLANG_BINARY_ARCHIVE }}
80
71
env :
81
72
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
+ - name : UploadSource
74
+ uses : softprops/action-gh-release@v1
75
+ if : ${{ matrix.platform == "x64" }}
82
76
with :
83
- upload_url : ${{ steps.create_release.outputs.upload_url }}
84
- asset_path : ./${{ steps.build.outputs.SLANG_BINARY_ARCHIVE }}
85
- asset_name : ${{ steps.build.outputs.SLANG_BINARY_ARCHIVE }}
86
- asset_content_type : application/zip
87
- - name : Upload Release Source (zip)
88
- id : upload-release-src-zip
89
- uses : actions/upload-release-asset@v1
90
- if : ${{ matrix.platform == 'x64' }}
77
+ files : ${{ steps.build.outputs.SLANG_SOURCE_ARCHIVE }}
91
78
env :
92
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
93
- with :
94
- upload_url : ${{ steps.create_release.outputs.upload_url }}
95
- asset_path : ./${{ steps.build.outputs.SLANG_SOURCE_ARCHIVE }}
96
- asset_name : ${{ steps.build.outputs.SLANG_SOURCE_ARCHIVE }}
97
- asset_content_type : application/zip
79
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments