File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 11# This workflow will build a .NET project
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33
4- name : .NET
4+ name : .NET CI/CD
55
66on :
77 push :
1616 uses : actions/checkout@v4
1717 with :
1818 fetch-depth : 0
19-
2019
2120 - name : Setup .NET SDK
2221 uses : actions/setup-dotnet@v4
5756 Compress-Archive -Path "$outputDir\*" -DestinationPath "$zipPath"
5857 echo "Created zip at $zipPath"
5958
60- - name : Upload ZIP as Release asset
61- uses : softprops/action-gh-release@v2
59+ - name : Create GitHub Release
60+ uses : actions/create-release@v1
61+ env :
62+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6263 with :
63- files : UnifiedServerProcess-v${{ steps.gitversion.outputs.nuGetVersionV2 }}.zip
64+ tag_name : v${{ steps.gitversion.outputs.majorMinorPatch }}
65+ release_name : Release v${{ steps.gitversion.outputs.majorMinorPatch }}
66+ draft : false
67+ prerelease : false
68+
69+ - name : Upload Release Asset
70+ uses : actions/upload-release-asset@v1
6471 env :
6572 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73+ with :
74+ upload_url : ${{ steps.create_release.outputs.upload_url }}
75+ asset_path : ./UnifiedServerProcess-v${{ steps.gitversion.outputs.nuGetVersionV2 }}.zip
76+ asset_name : UnifiedServerProcess-v${{ steps.gitversion.outputs.nuGetVersionV2 }}.zip
77+ asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments