Skip to content

Commit 76acf79

Browse files
authored
Update release-nuget.yml
1 parent d12a926 commit 76acf79

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

.github/workflows/release-nuget.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)