Create dotnet.yml

This commit is contained in:
Vitaliya
2021-08-05 23:20:20 +03:00
committed by GitHub
parent 0190e73efa
commit 66fc06a673

27
.github/workflows/dotnet.yml vendored Normal file
View File

@@ -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