Skip to content

improved some suggestions (#33) #84

improved some suggestions (#33)

improved some suggestions (#33) #84

Workflow file for this run

name: Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1
- name: Setup NuGet.exe for use with actions
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
uses: NuGet/setup-nuget@v1.0.2
- name: Restore NuGet packages
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: nuget restore GH.MiscToolbox/GH.MiscToolbox.sln
- name: Build the Solution
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: msbuild GH.MiscToolbox/GH.MiscToolbox.sln
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
# Artifact name
name: GH-MiscToolbox
# A file, directory or wildcard pattern that describes what to upload
path: GH.MiscToolbox/GH.MiscToolbox/bin/GH.MiscToolbox.gha