Merge pull request #14 from winup-zhou/develop #39
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/setup-msbuild@v1.3.1 | |
- name: Setup Nuget | |
uses: NuGet/setup-nuget@v1.2.0 | |
- name: Restore nuget packages | |
run: nuget restore MetroAts.sln | |
- name: MSBuild | |
run: msbuild MetroAts.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/MetroAts.dll' | xargs mv --force --backup=numbered -t ./plugins/ | |
shell: bash | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: plugins | |
path: ./plugins/ |