Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |