mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-08-01 15:49:14 +08:00
Create build.yml
This commit is contained in:
parent
1d8d199af7
commit
5b4a7d784d
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user