mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-08 22:25:42 +12:00
Create dotnet.yml
This commit is contained in:
parent
4d836ba7cc
commit
c1b309f8a5
1 changed files with 31 additions and 0 deletions
31
.github/workflows/dotnet.yml
vendored
Normal file
31
.github/workflows/dotnet.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: .NET
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./Horse Isle Server
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: 5.0.x
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
- name: Build
|
||||||
|
run: dotnet publish --no-restore -c Release -r linux-x64 --self-contained true
|
||||||
|
- name: upload result
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: result
|
||||||
|
path: Horse Isle Server/HorseIsleServer/bin/
|
Loading…
Add table
Reference in a new issue