Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
tags:
- 'v*.*.*'
branches:
- main

permissions:
contents: read
Expand Down Expand Up @@ -41,16 +39,15 @@ jobs:
run: |
find ./tests -type f -name '*Test*.csproj' | while read proj; do
echo "Testing $proj"
dotnet test "$proj" --no-build --configuration Release
dotnet test "$proj" --no-build --configuration Release --logger:"trx;LogFileName=TestResults.trx"
Comment thread
Chris-Wolfgang marked this conversation as resolved.
done

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}
path: TestResults/

path: '**/TestResults*.trx'

publish:
name: Pack and Publish NuGet
Expand Down Expand Up @@ -83,7 +80,9 @@ jobs:
done

- name: Publish NuGet Package
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} # Ensure this secret is set in repository settings
run: |
for pkg in ./nuget-packages/*.nupkg; do
echo dotnet nuget push "$pkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
dotnet nuget push "$pkg" --api-key "$NUGET_API_KEY" --source https://api.nuget.org/v3/index.json
done
Loading