Skip to content

Bump Microsoft.SourceLink.GitHub from 1.1.1 to 8.0.0 #30

Bump Microsoft.SourceLink.GitHub from 1.1.1 to 8.0.0

Bump Microsoft.SourceLink.GitHub from 1.1.1 to 8.0.0 #30

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
env:
ProjectName: DarkNet
runs-on: windows-latest
steps:
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Clone repository
uses: actions/[email protected]
- name: Restore dependencies
run: dotnet restore --verbosity normal
- name: Build library
run: dotnet build ${{ env.ProjectName }} --no-restore --configuration Release --verbosity normal
- name: Pack library
run: dotnet pack ${{ env.ProjectName }} --no-build --configuration Release --verbosity normal
- name: Build Windows Forms demo
run: msbuild darknet-demo-winforms -p:Configuration=Release -t:build -restore -m
- name: Build WPF demo
run: dotnet publish darknet-demo-wpf --no-restore --configuration Release -p:PublishSingleFile=true --runtime win-x64 --self-contained false --verbosity normal
- name: Flatten artifacts
run: |
mkdir upload
copy ${{ env.ProjectName }}/bin/Release/*.*nupkg upload
copy darknet-demo-winforms/bin/Release/*.exe upload
copy darknet-demo-wpf/bin/Release/*/*/publish/*.exe upload
- name: Upload artifacts
uses: actions/[email protected]
with:
name: ${{ env.ProjectName }}
path: upload
if-no-files-found: error