Skip to content

Commit 39118f6

Browse files
authored
Update nuget-pack-push.yml
1 parent ec38839 commit 39118f6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/nuget-pack-push.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ jobs:
1212
- uses: actions/setup-dotnet@v1
1313
with:
1414
dotnet-version: '3.1.100'
15-
- run: dotnet build -c Release
16-
- run: dotnet test -c Release
17-
- run: dotnet pack -c Release -o ${GITHUB_WORKSPACE}
18-
- run: dotnet nuget push ${GITHUB_WORKSPACE}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
15+
- name: Get the version
16+
id: get_version
17+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
18+
- 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

0 commit comments

Comments
 (0)