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