Skip to content

Commit

Permalink
Review the publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafeed3s committed Dec 28, 2023
1 parent 843b87d commit d218a6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test --no-build --verbosity normal
run: dotnet test --no-build --verbosity normal - c Release

publish:
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -42,5 +42,7 @@ jobs:
dotnet-version: 8.0.x
- name: Build and publish
run: |
cd src/SUTForge/bin/Release
cd src/SUTForge
VERSION=$(echo ${GITHUB_REF#refs/tags/})
dotnet pack --configuration Release --output . --version-suffix $VERSION
dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit d218a6f

Please sign in to comment.