-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (34 loc) · 1.32 KB
/
msi_packaging.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
name: Unlimotion msiPkg
on:
release:
types:
- published
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
advinst-aip-build:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- name: Publish
run: dotnet publish src\Unlimotion.Desktop\Unlimotion.Desktop.csproj -c Release -f net8.0 -r win-x64 -o ${{ github.workspace }}\src\Unlimotion.Desktop\bin\Release\net8.0\win-x64\publish -p:PublishSingleFile=true --self-contained true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -p:Version=${{ github.ref_name }}
- name: Build AIP
uses: caphyon/[email protected]
with:
advinst-version: '20.3.2'
advinst-enable-automation: 'true'
aip-path: ${{ github.workspace }}\Unlimotion.aip
aip-build-name: DefaultBuild
aip-package-name: Unlimotion-${{ github.ref_name }}.msi
aip-output-dir: ${{ github.workspace }}\setup
aip-commands: |
SetProperty FOO="foo"
SetVersion ${{ github.ref_name }}
- name: Upload MsiPkg to Release
uses: xresloader/[email protected]
with:
file: ${{ github.workspace }}\setup\Unlimotion-${{ github.ref_name }}.msi
tags: true