2023-04-03 22:24:47 +00:00
|
|
|
# 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
|
|
|
|
|
2023-04-03 22:34:11 +00:00
|
|
|
name: LANCommander
|
2023-04-03 22:24:47 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v3
|
|
|
|
with:
|
|
|
|
dotnet-version: 6.0.x
|
|
|
|
- name: Restore dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
2023-04-04 04:51:09 +00:00
|
|
|
run: dotnet build "./LANCommander/LANCommander.csproj" --no-restore
|
|
|
|
- name: Publish
|
2023-04-05 00:40:29 +00:00
|
|
|
run: dotnet publish "./LANCommander/LANCommander.csproj" -c Release -o _Build --self-contained --os win
|
2023-04-04 04:51:09 +00:00
|
|
|
- name: Upload Artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: LANCommander
|
2023-04-05 00:24:33 +00:00
|
|
|
path: "./_Build"
|