Skip to content
Merged
Show file tree
Hide file tree
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
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 --filter "TestCategory=AppVeyor"

- 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 }}
31 changes: 0 additions & 31 deletions appveyor.yml

This file was deleted.