From 927674e4a84f3587be932042e9f1b46f242c3615 Mon Sep 17 00:00:00 2001 From: Mitch Chimwemwe Chanza Date: Fri, 27 Mar 2026 00:10:55 +0200 Subject: [PATCH] chore(workflows): update build and pack steps in CI configurations - Added explicit build steps in `wangamail-csharp.yml` and `wangapayfast-csharp.yml` workflows to ensure projects are built before packing. - Modified pack commands to include `--no-build` and `--no-restore` options, improving efficiency by avoiding redundant operations during the CI process. --- .github/workflows/wangamail-csharp.yml | 5 ++++- .github/workflows/wangapayfast-csharp.yml | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wangamail-csharp.yml b/.github/workflows/wangamail-csharp.yml index 5bf94a7..4ffb30c 100644 --- a/.github/workflows/wangamail-csharp.yml +++ b/.github/workflows/wangamail-csharp.yml @@ -264,8 +264,11 @@ jobs: - name: Restore run: dotnet restore wangamail-csharp/WangaMail.CSharp.csproj + - name: Build + run: dotnet build wangamail-csharp/WangaMail.CSharp.csproj -c Release --no-restore + - name: Pack - run: dotnet pack wangamail-csharp/WangaMail.CSharp.csproj -c Release --no-restore + run: dotnet pack wangamail-csharp/WangaMail.CSharp.csproj -c Release --no-restore --no-build - name: Publish to NuGet env: diff --git a/.github/workflows/wangapayfast-csharp.yml b/.github/workflows/wangapayfast-csharp.yml index fadbd4b..6f77062 100644 --- a/.github/workflows/wangapayfast-csharp.yml +++ b/.github/workflows/wangapayfast-csharp.yml @@ -224,6 +224,9 @@ jobs: with: dotnet-version: '8.0.x' + - name: Restore + run: dotnet restore wangapayfast-csharp/WangaPayFast.CSharp.csproj + - name: Validate NuGet key env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} @@ -233,8 +236,11 @@ jobs: exit 1 fi + - name: Build + run: dotnet build wangapayfast-csharp/WangaPayFast.CSharp.csproj -c Release --no-restore + - name: Pack - run: dotnet pack wangapayfast-csharp/WangaPayFast.CSharp.csproj -c Release -o ./artifacts + run: dotnet pack wangapayfast-csharp/WangaPayFast.CSharp.csproj -c Release -o ./artifacts --no-build --no-restore - name: Publish package env: