From 66fc06a6734d101a5c2963e39e637e74ee75dbc0 Mon Sep 17 00:00:00 2001 From: Vitaliya Date: Thu, 5 Aug 2021 23:20:20 +0300 Subject: [PATCH] Create dotnet.yml --- .github/workflows/dotnet.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..2ab42fb --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,27 @@ +name: .NET + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + DOTNET_SDK_VERSION: 5.0.x + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: ${{ env.DOTNET_SDK_VERSION }} + - name: Publish + run: dotnet publish -c Release -o out --no-restore + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ github.event.repository.name }} + path: out