Skip to content

Commit

Permalink
Restore and pack before publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafeed3s committed Dec 30, 2023
1 parent 1c9a4f3 commit 50836c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build and publish

- name: Restore dependencies
run: dotnet restore

- name: Pack and publish
run: |
ls
cd ./src/SUTForge
VERSION=$(echo ${GITHUB_REF#refs/tags/})
dotnet pack --configuration Release --output . --version-suffix $VERSION
dotnet pack src/SUTForge/SUTForge.csproj --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 50836c3

Please sign in to comment.