Create build workflow

This commit is contained in:
HolographicHat
2022-09-02 19:50:41 +08:00
committed by GitHub
parent 29aa4fea2d
commit e086e14e8d

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

@@ -0,0 +1,30 @@
name: .NET Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Publish
run: dotnet publish -o .\publish\
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: publish