From aba4cd5db1fa071001d8aa4f58d5b85f1ff105ab Mon Sep 17 00:00:00 2001 From: mundane boy <111234149+mundaneboy@users.noreply.github.com> Date: Thu, 17 Oct 2024 09:27:43 -0700 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7f2eca6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Build project + +on: + push: + branches: + - main + paths: + - Source/** + pull_request: + branches: + - main + paths: + - Source/** + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v1.1.3 + + - name: Build release + run: msbuild Source/GrasscutterTools.sln /p:Configuration=Release /t:build /restore + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: GrasscutterTools + path: Source/GrasscutterTools/bin/Release/GrasscutterTools.exe