Leverage C# primary constructors whenever possible #98
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: Build release artifact | |
on: [push, pull_request] | |
jobs: | |
build-release: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Publish release build | |
run: dotnet publish -c Release -p:PublishProfile=Standalone | |
- name: Print published executable hash | |
run: (Get-FileHash src/bin/Release/standalone/Win10BloatRemover.exe).Hash | |
- name: Copy Readme and License near published executable | |
run: cp @('LICENSE', 'README.md') -Destination src/bin/Release/standalone | |
- name: Upload release files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Win10BloatRemover_${{ github.ref_name }} | |
path: src/bin/Release/standalone/* | |
if-no-files-found: error |