Skip to content

Commit

Permalink
Restore, Build and Pack in one step
Browse files Browse the repository at this point in the history
  • Loading branch information
johnazariah authored Jul 3, 2024
1 parent 74b6a3c commit 92e80d3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,14 @@ jobs:
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore --configuration Release

- name: Build
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release --property:PackageOutputPath=${{ env.NuGetDirectory }}

- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal

- name: Pack
run: dotnet pack --configuration Release "src/CSharp.UnionTypes.SourceGenerator" --output ${{ env.NuGetDirectory }}
#- name: Pack
# run: dotnet pack --configuration Release "src/CSharp.UnionTypes.SourceGenerator" --output ${{ env.NuGetDirectory }}

# Publish the NuGet package as an artifact, so they can be used in the following jobs
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 92e80d3

Please sign in to comment.