Skip to content

Commit 641695d

Browse files
committed
Add Github Actions
1 parent 7ecf5ce commit 641695d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Msbuild
17+
uses: microsoft/setup-msbuild@v1
18+
19+
- name: Setup NuGet
20+
uses: NuGet/setup-nuget@v1
21+
22+
- name: Restore NuGets
23+
run: nuget restore TextureMerge.sln
24+
25+
- name: Build x64
26+
run: msbuild TextureMerge.sln /p:Configuration=Release /p:Platform=x64
27+
28+
- name: Zip
29+
run: Compress-Archive -Path .\TextureMerge\bin\x64\Release\* -DestinationPath .\TextureMerge\bin\x64\TextureMerge.zip
30+
31+
- name: Build AIP
32+
uses: caphyon/advinst-github-action@v1.0
33+
with:
34+
advinst-enable-automation: 'true'
35+
aip-path: ${{ github.workspace }}\Setup\setup.aip
36+
aip-package-name: setup.msi
37+
aip-build-name: DefaultBuild
38+
aip-output-dir: ${{ github.workspace }}\Setup\setup-SetupFiles
39+
40+
- name: Release
41+
uses: softprops/action-gh-release@v1
42+
with:
43+
files: |
44+
.\TextureMerge\bin\x64\TextureMerge.zip
45+
.\Setup\setup-SetupFiles\setup.msi

0 commit comments

Comments
 (0)