mirror of
https://github.com/wangdage12/Snap.Hutao.git
synced 2026-02-18 02:42:15 +08:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
39 lines
996 B
YAML
39 lines
996 B
YAML
name: Build MSI Installer
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout source
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup .NET SDK
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
|
|
- name: Install Wix Toolset 4
|
|
run: dotnet tool install --global wix --version 4.0.1
|
|
|
|
- name: Restore NuGet packages
|
|
run: dotnet restore src/Snap.Hutao/Snap.Hutao.slnx
|
|
|
|
- name: Build WinUI 3 project (self-contained)
|
|
run: dotnet build src/Snap.Hutao/Snap.Hutao/Snap.Hutao.csproj -c Release
|
|
|
|
- name: Build MSI installer
|
|
run: dotnet build src/Snap.Hutao/Snap.Hutao.Installer/Snap.Hutao.Installer.wixproj -c Release
|
|
|
|
- name: Upload MSI Artifact
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: Snap.Hutao-MSI
|
|
path: |
|
|
src/Snap.Hutao/Snap.Hutao.Installer/bin/x64/Release/en-US/*.msi
|