-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 1.08 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build
on:
push:
paths:
- 'SimpleVoiceroid2Proxy/**'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: MSBuild
run: msbuild SimpleVoiceroid2Proxy.sln -property:Configuration="Release" -property:Platform="Any CPU" -m -restore
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: SimpleVoiceroid2Proxy
if-no-files-found: error
path: SimpleVoiceroid2Proxy/bin/Release
- name: Create Release
shell: powershell
if: startsWith(github.ref, 'refs/tags/')
run: Compress-Archive -Path SimpleVoiceroid2Proxy/bin/Release/* -DestinationPath SimpleVoiceroid2Proxy.zip
- name: Upload Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: SimpleVoiceroid2Proxy.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}