File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,25 +17,14 @@ jobs:
1717 dotnet-version : 5.0.x
1818 - name : Restore dependencies
1919 run : dotnet restore
20- - name : Build
21- run : dotnet build --no-restore --configuration Release
22- - name : Test
23- run : dotnet test --no-build --verbosity normal --configuration Release
24- pack :
25- runs-on : [ubuntu-latest]
26- needs : [build]
27-
28- steps :
29- - uses : actions/checkout@v2
30- - name : Setup .NET
31- uses : actions/setup-dotnet@v1
32- with :
33- dotnet-version : 5.0.x
34- - name : Restore dependencies
35- run : dotnet restore
3620 - name : Set VERSION variable from tag
3721 run : echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
22+ - name : Build
23+ run : dotnet build --no-restore --configuration Release /p:Version=${VERSION}
24+ - name : Test
25+ run : dotnet test --no-build --verbosity normal --configuration Release /p:Version=${VERSION}
3826 - name : Packing
39- run : dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
27+ run : dotnet pack --configuration Release --no-build --output .
4028 - name : Publishing
4129 run : dotnet nuget push NuGet.Workflow.${VERSION}.nupkg --source https://nuget.pkg.github.com/acraven/index.json --api-key ${{github.token}}
30+
You can’t perform that action at this time.
0 commit comments