-
Notifications
You must be signed in to change notification settings - Fork 25
39 lines (37 loc) · 1.27 KB
/
create-nightly-installer.yaml
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
name: Create Nightly Installer
on:
push:
branches:
- dt_pre_*
- dt_rel*
paths-ignore:
- '.github/**'
- 'README.md'
- 'res/**'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
build-runspace:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up MSBuild
uses: microsoft/Setup-MSBuild@v2
- name: Prepare NuGet packages
run: .\nugetpkgprep.bat
continue-on-error: false
- name: Generate installer
run: |
$solutionDir = "$((Get-Location).Path)\"
$projectDir = "$((Get-Location).Path)\"
$targetDir = (Get-Location).Path + "\bin\Debug\"
msbuild Tools\UnpEax\UnpEax.csproj /p:Configuration=Debug /p:DeployOnBuild=true
msbuild DISMTools.vbproj /p:Configuration=Debug /p:DeployOnBuild=true /p:SolutionDir=$solutionDir /p:ProjectDir=$projectDir /p:TargetDir=$targetDir
Move-Item -Path "$($solutionDir.TrimEnd("\"))\Installer\Output\dt_setup.exe" -Destination "$($solutionDir.TrimEnd("\"))\Installer\Nightly\dt_setup.exe" -Force
- name: Push nightly installer
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: DISMTools Nightly Installer
if: success()