mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
37 lines
826 B
YAML
37 lines
826 B
YAML
# This workflow will build a .NET project
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
|
|
|
name: .NET
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
paths: [ "**.cs" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
paths: [ "**.cs" ]
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: windows-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 --configuration Release
|
|
- name: Upload a Build Artifact
|
|
uses: actions/upload-artifact@v4.3.1
|
|
with:
|
|
name: DanhengServer
|
|
path: GameServer/bin/Release/net8.0/
|
|
|