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
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ jobs:
with:
name: Packages
path: Artifacts/Packages
- name: Setup .NET SDKs
uses: actions/setup-dotnet@v4
Comment thread
vbreuss marked this conversation as resolved.
- name: Publish
run: |
echo "Found the following packages to push:"
Expand All @@ -192,7 +194,7 @@ jobs:
done
for entry in Artifacts/Packages/aweXpect/*.nupkg
do
nuget push $entry -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -SkipDuplicate
dotnet nuget push $entry --source https://api.nuget.org/v3/index.json --api-key "${{secrets.NUGET_API_KEY}}" --skip-duplicate
done
- name: Check pre-release
id: check-pre-release
Expand Down Expand Up @@ -222,6 +224,8 @@ jobs:
with:
name: Packages
path: Artifacts/Packages
- name: Setup .NET SDKs
uses: actions/setup-dotnet@v4
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider pinning the action to a specific version (e.g., actions/setup-dotnet@v4.0.1) instead of using the major version tag for better build reproducibility and security.

Suggested change
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v4.0.1

Copilot uses AI. Check for mistakes.
- name: Publish
run: |
echo "Found the following packages to push:"
Expand All @@ -232,7 +236,7 @@ jobs:
done
for entry in Artifacts/Packages/aweXpect.Core/*.nupkg
do
nuget push $entry -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -SkipDuplicate
dotnet nuget push $entry --source https://api.nuget.org/v3/index.json --api-key "${{secrets.NUGET_API_KEY}}" --skip-duplicate
done

finalize-release:
Expand Down
Loading