From 07e1e54338a9983e5db6a36fcd96c25777494884 Mon Sep 17 00:00:00 2001 From: mvadu <8618235+mvadu@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:11:30 -0500 Subject: [PATCH 1/3] Add GitHub Actions CI/CD workflow to replace AppVeyor --- .github/workflows/build.yml | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d6d2743 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,56 @@ +name: Build and Deploy + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + DOTNET_VERSION: '8.0.x' + CONFIGURATION: Release + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Required for Source Link + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration ${{ env.CONFIGURATION }} --no-restore + + - name: Test + run: dotnet test --configuration ${{ env.CONFIGURATION }} --no-build --verbosity normal + + - name: Pack NuGet packages + run: dotnet pack --configuration ${{ env.CONFIGURATION }} --no-build --output ./artifacts + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: nuget-packages + path: ./artifacts/*.nupkg + + - name: Upload symbol packages + uses: actions/upload-artifact@v4 + with: + name: symbol-packages + path: ./artifacts/*.snupkg + + - name: Publish to NuGet + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} From b3123df6aa41b9289ce6c2ba1ade4c0ea545d25c Mon Sep 17 00:00:00 2001 From: mvadu <8618235+mvadu@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:18:21 -0500 Subject: [PATCH 2/3] remove appveyor --- appveyor.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 273f5da..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,31 +0,0 @@ -version: 0.{build} -image: Visual Studio 2019 -pull_requests: - do_not_increment_build_number: true -branches: - only: - - master -before_build: -- nuget restore -- dotnet restore -configuration: - - Release -build: - verbosity: minimal - # publish_nuget: true - publish_nuget_symbols: true - use_snupkg_format: true -test: - categories: - only: - - AppVeyor -deploy: -- provider: NuGet - api_key: - secure: z+VCuAl52RiKf1Ie2p6ivQloYTH12q7H0G6fEl/c4FepMD75/vI7oRnbMISdgWEm - on: - branch: master -artifacts: -- path: src\AdysTech.CredentialManager\bin\Debug - name: CredentialManager -- path: src\AdysTech.CredentialManager\bin\**\*nupkg From 19c94c513f2a448bbe299d661a47ed450c719367 Mon Sep 17 00:00:00 2001 From: mvadu <8618235+mvadu@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:27:05 -0500 Subject: [PATCH 3/3] Filter tests to AppVeyor category only, matching old CI behavior --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d6d2743..2935f4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: run: dotnet build --configuration ${{ env.CONFIGURATION }} --no-restore - name: Test - run: dotnet test --configuration ${{ env.CONFIGURATION }} --no-build --verbosity normal + run: dotnet test --configuration ${{ env.CONFIGURATION }} --no-build --verbosity normal --filter "TestCategory=AppVeyor" - name: Pack NuGet packages run: dotnet pack --configuration ${{ env.CONFIGURATION }} --no-build --output ./artifacts