Skip to content

Commit 42af229

Browse files
committed
Feat: Upgrade actions and enhance release workflow
Updated GitHub Actions to use newer versions of `actions/checkout` and `actions/setup-dotnet`. Modified test command to target the solution file and added package from the Contracts project to the NuGet publishing step.
1 parent 2fea1d8 commit 42af229

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v3
16+
uses: actions/setup-dotnet@v4
1717
with:
1818
dotnet-version: '9.x'
1919

@@ -26,13 +26,13 @@ jobs:
2626
# Ensure that the tests must pass
2727
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code
2828
- name: Run tests
29-
run: dotnet run -c Release --no-restore --no-build
30-
working-directory: "tests/Tests.CodeOfChaos.CliArgsParser"
29+
run: dotnet test CodeOfChaos.CliArgsParser.sln -c Release --no-restore --no-build
3130

3231
- name: Publish to NuGet
3332
env:
3433
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
3534
run: |
3635
dotnet nuget push src/CodeOfChaos.CliArgsParser/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
3736
dotnet nuget push src/CodeOfChaos.CliArgsParser.Library/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
38-
dotnet nuget push src/CodeOfChaos.CliArgsParser.Generators/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
37+
dotnet nuget push src/CodeOfChaos.CliArgsParser.Generators/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
38+
dotnet nuget push src/CodeOfChaos.CliArgsParser.Contracts/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)