File tree Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change 3434 steps :
3535 - name : Checkout
3636 uses : actions/checkout@v2
37- - name : Get version
38- id : get_version
39- run : |
40- tag_name=${{ github.event.release.tag_name }}
41- echo ::set-output name=VERSION::${tag_name:1}
42- shell : bash
4337 - name : Add msbuild to PATH
44384539 - name : Setup nuget
5448 - name : Restore packages
5549 run : nuget restore
5650 - name : Build with msbuild
57- run : msbuild -p:Configuration=Release -p:Version=${{ steps.get_version.outputs.VERSION }}
51+ run : msbuild -p:Configuration=Release -p:Version=${{ github.event.release.tag_name }}
5852 - name : Pack nuget packages
59- run : dotnet pack --configuration Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
53+ run : dotnet pack --configuration Release --no-build --output nupkgs - p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ github.event.release.tag_name }}
6054 - name : Publish nuget packages
61- run : dotnet nuget push **/*.nupkg --source "github"
55+ run : dotnet nuget push **/*.nupkg --source "github"
56+ - name : Upload artifacts
57+ uses : actions/upload-artifact@v1
58+ with :
59+ name : nupkgs
60+ path : nupkgs
61+
62+ release :
63+ needs : publish
64+ runs-on : ubuntu-latest
65+ steps :
66+ - name : Download artifacts
67+ uses : actions/download-artifact@v1
68+ with :
69+ name : nupkgs
70+ path : nupkgs
71+ - name : Release artifacts
72+ uses : skx/github-action-publish-binaries@master
73+ env :
74+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75+ with :
76+ args : ' nupkgs/*'
You can’t perform that action at this time.
0 commit comments