Add workflow files. #1
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: MSBuild | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- develop | |
paths: | |
- '*/**' | |
- '!./*' | |
- './*.sln' | |
- '!.github/**' | |
jobs: | |
build: | |
name: MSBuild | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: Setup Nuget | |
uses: NuGet/[email protected] | |
- name: Restore nuget packages | |
run: nuget restore TobuAts.sln | |
- name: MSBuild | |
run: msbuild TobuAts.sln /m /p:configuration="Release" /p:platform="Any CPU" /p:OutputPath="./out/" | |
shell: cmd | |
- name: Collect artifact | |
run: | | |
ls -alR | |
mkdir plugins/ | |
find . -type f -path '*/out/*.dll' | xargs mv -t ./plugins/ | |
shell: bash | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: plugins | |
path: ./plugins/ |