Skip to content

Commit

Permalink
Update ci.yml --- Added pack and push!
Browse files Browse the repository at this point in the history
... We are almost ready
  • Loading branch information
gioce90 authored Dec 30, 2024
1 parent 4a82a8b commit 81fd788
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,26 @@ jobs:
- name: Run a one-line script
run: echo NuJet is ready to be build and pack!

# Imposta l'ambiente .NET
# Set .NET environment
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'

- run: dotnet restore NuJet

- run: dotnet build NuJet

# Restore dependencies
- name: Restore dependencies
run: dotnet restore NuJet

# Build the solution
- name: Build solution
run: dotnet build NuJet
# --configuration Release

# Pack the NuGet package
- name: Pack the NuGet package
run: dotnet pack NuJet.sln --output ./artifacts
# run: dotnet pack NuJet.sln --configuration Release --output ./artifacts

# Publish the NuGet package
- name: Publish to NuGet
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit 81fd788

Please sign in to comment.