Update build.yml #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
# Pretty much WIP, don't expect it to work for now | |
name: PlaySync Build | |
on: | |
push: | |
branches: main | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: Navigate to Workspace | |
run: cd $GITHUB_WORKSPACE | |
- name: Create Build Directory | |
run: mkdir _build | |
- name: Restore Packages | |
run: nuget restore EzRep.sln | |
- name: Build Solution | |
run: | | |
msbuild.exe EzRep.sln /nologo /nr:false /p:DeleteExistingFiles=True /p:platform="Any CPU" /p:configuration="Release" /p:PublishUrl="../_build" | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: EZRepBundle | |
path: "./_build" |