Create build.yml

This commit is contained in:
2022-12-08 16:43:30 +08:00 committed by GitHub
parent 1d8d199af7
commit 5b4a7d784d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

37
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,37 @@
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
with:
fetch-depth: 0
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1.3
- name: Build release
run: msbuild Source/GrasscutterTools.sln /p:Configuration=Release
- name: Create zip
run: Compress-Archive Source/GrasscutterTools/bin/Release/GrasscutterTools.exe GrasscutterTools.zip
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: GrasscutterTools
path: GrasscutterTools.zip