Skip to content

Commit 69e0e9e

Browse files
committed
Update GitHub Actions workflow for .NET 8.0
Updated the GitHub Actions workflow to enhance the build and deployment process by upgrading to .NET version 8.0.x, refining steps for dependency restoration, building, and testing, and introducing Redis setup for improved caching. Specifically, targeted restoration and building steps to specific solution and project files, added a Redis setup step, and optimized the packaging and testing processes to avoid unnecessary rebuilds.
1 parent 333c130 commit 69e0e9e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/build-deploy.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,21 @@ jobs:
1919
dotnet-version: '8.0.x' # Replace with your .NET version
2020

2121
- name: Restore dependencies
22-
run: dotnet restore
22+
run: dotnet restore ./Promact.Caching/Promact.Caching.sln
2323

2424
- name: Build
25-
run: dotnet build --no-restore --configuration Release
25+
run: dotnet build ./Promact.Caching/Promact.Caching/Promact.Caching.csproj --no-restore --configuration Release
26+
27+
- name: Start Redis
28+
uses: supercharge/[email protected]
29+
with:
30+
redis-version: 7
2631

2732
- name: Test
28-
run: dotnet test --no-build
33+
run: dotnet test ./Promact.Caching/Promact.Caching.Test/Promact.Caching.Test.csproj --no-build
2934

3035
- name: Pack
31-
run: dotnet pack --no-build --output nupkg
36+
run: dotnet pack ./Promact.Caching/Promact.Caching/Promact.Caching.csproj --no-build --output nupkg
3237

3338
- name: Push to NuGet
3439
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_PUBLISH_API }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)