From f68436be9050ccdfa2e34306b2eba8a0347c6267 Mon Sep 17 00:00:00 2001 From: Rohan Singh Date: Sat, 17 Feb 2024 09:33:13 -0500 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..11fad24 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal + - name: Upload Artifacts + uses: actions/upload-artifact@v4.3.1 + with: + name: NuGet_packages + path: '**/*.nupkg' + if-no-files-found: error + retention-days: 30 + overwrite: true + compression-level: 0