Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Galloway committed Aug 29, 2024
1 parent 5e527a2 commit 614cb9f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,8 @@ jobs:
- name: Build project
run: dotnet build --configuration Release ./Umami.Net/Umami.Net.csproj --no-restore

- name: Run tests using .NET CLI
run: dotnet test ./Umami.Net.Test/Umami.Net.Test.csproj --configuration Release --no-build --logger:"trx;LogFileName=TestResults.trx" --results-directory "./TestResults" --verbosity normal

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-results
path: ./TestResults
- name: Run tests
run: dotnet test --configuration Release ./Umami.Net.Test/Umami.Net.Test.csproj

- name: Pack project
run: dotnet pack --configuration Release ./Umami.Net/Umami.Net.csproj --no-build --output ./nupkg
Expand Down
20 changes: 10 additions & 10 deletions Umami.Net/Umami.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<Target Name="NugetPackAutoVersioning" AfterTargets="Build" Condition="'$(Configuration)' == 'Debug'">
<!-- Delete the contents of the target directory -->
<RemoveDir Directories="$(SolutionDir)nuget" />
<!-- Recreate the target directory -->
<MakeDir Directories="$(SolutionDir)nuget" />
<!-- Run the dotnet pack command -->
<Exec Command="dotnet pack -p:PackageVersion=$([System.DateTime]::Now.ToString(&quot;yyyy.MM.dd.HHmm&quot;))-preview -p:V --no-build --configuration $(Configuration) --output &quot;$(SolutionDir)nuget&quot;" />
<Exec Command="dotnet nuget push $(SolutionDir)nuget\*.nupkg --source Local" />
<Exec Command="del /f /s /q $(SolutionDir)nuget\*.nupkg" />
</Target>
<!-- <Target Name="NugetPackAutoVersioning" AfterTargets="Build" Condition="'$(Configuration)' == 'Debug'">-->
<!-- &lt;!&ndash; Delete the contents of the target directory &ndash;&gt;-->
<!-- <RemoveDir Directories="$(SolutionDir)nuget" />-->
<!-- &lt;!&ndash; Recreate the target directory &ndash;&gt;-->
<!-- <MakeDir Directories="$(SolutionDir)nuget" />-->
<!-- &lt;!&ndash; Run the dotnet pack command &ndash;&gt;-->
<!-- <Exec Command="dotnet pack -p:PackageVersion=$([System.DateTime]::Now.ToString(&quot;yyyy.MM.dd.HHmm&quot;))-preview -p:V &#45;&#45;no-build &#45;&#45;configuration $(Configuration) &#45;&#45;output &quot;$(SolutionDir)nuget&quot;" />-->
<!-- <Exec Command="dotnet nuget push $(SolutionDir)nuget\*.nupkg &#45;&#45;source Local" />-->
<!-- <Exec Command="del /f /s /q $(SolutionDir)nuget\*.nupkg" />-->
<!-- </Target>-->
</Project>

0 comments on commit 614cb9f

Please sign in to comment.