File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 11name : CD
22on :
3- push :
4- tags :
5- - ' *'
3+ release :
4+ types :
5+ - published
6+ # - created
7+ # - edited
8+ # - deleted
9+ # - prereleased
10+
611jobs :
712 build :
813 name : Push ${{ github.ref }} to NUGET
1419 dotnet-version : ' 3.1.100'
1520 - name : Get the version
1621 id : get_version
17- run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
22+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v /}
1823 - run : dotnet build -c Release -p:version=${{ steps.get_version.outputs.VERSION }} /nowarn:CS1591
19- - run : dotnet test -c Release -p:version=${{ steps.get_version.outputs.VERSION }} /nowarn:CS1591
20- - run : dotnet pack src/ -c Release -o ${GITHUB_WORKSPACE} -p:version=${{ steps.get_version.outputs.VERSION }} /nowarn:CS1591
21- - run : dotnet nuget push ${GITHUB_WORKSPACE}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
24+ # - run: dotnet test -c Release -p:version=${{ steps.get_version.outputs.VERSION }} /nowarn:CS1591
25+ # - run: dotnet pack src/ -c Release -o ${GITHUB_WORKSPACE} -p:version=${{ steps.get_version.outputs.VERSION }} /nowarn:CS1591
26+ # - run: dotnet nuget push ${GITHUB_WORKSPACE}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments