Skip to content

Update dotnet.yml

Update dotnet.yml #12

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build Apricot/Apricot.csproj --no-restore --configuration Release
# - name: Test
# run: dotnet test Apricot/Apricot.csproj --no-build --verbosity normal
- name: Publish
run: dotnet publish Apricot/Apricot.csproj --configuration Release --framework net8.0-windows10.0.17763.0 --output Apricot/bin/Release/net8.0-windows10.0.17763.0/win10-x64/publish/ --runtime win10-x64 --self-contained true
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: Apricot-win-x64
path: Apricot/bin/Release/net8.0-windows10.0.17763.0/win10-x64/publish/
retention-days: 30