Skip to content

Workflow file for this run

name: .NET Framework Build and Release
on:
release:
types: [created]
jobs:
build:
name: Build .NET Framework Application
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet packages
run: nuget restore Moriarty.sln
- name: Build the project
run: msbuild Moriarty.sln /p:Configuration=Release /p:Platform="Any CPU"
- name: Upload Build Artifact
uses: actions/[email protected]
with:
name: MoriartyExecutable
path: Moriarty/bin/Release/Moriarty.exe
release:
needs: build
runs-on: windows-latest
steps:
- uses: actions/[email protected]
with:
name: MoriartyExecutable
path: ./
- uses: softprops/[email protected]
with:
files: './Moriarty.exe'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}