Updated app label #13
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: .NET Framework Desktop | |
on: | |
push: | |
branches: [ "main" ] | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
permissions: | |
contents: write | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: windows-2019 # For a list of available runner types, refer to | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: setup-msbuild | |
uses: microsoft/[email protected] | |
- name: Restore Packages | |
run: nuget restore ExamplePostApp.sln | |
- name: Build solution | |
run: msbuild ExamplePostApp.sln -t:rebuild -property:Configuration=Release | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ExamplePostAppExecutable | |
path: D:\a\ExamplePostApp\ExamplePostApp\bin\Release\ExamplePostApp.exe | |
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: D:/a/ExamplePostApp/ExamplePostApp/bin/Release/ExamplePostApp.exe | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} |