Create Nightly Installer #326
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Nightly Installer | |
on: | |
push: | |
branches: | |
- dt_pre_* | |
- dt_rel* | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
- 'res/**' | |
workflow_dispatch: | |
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 | |
run: | | |
cd ..\.. | |
git clone https://github.com/CodingWonders/dt-nightly-installers | |
#Write-Host $env:GITHUB_REF_NAME | |
New-Item -Path ".\dt-nightly-installers\$($env:GITHUB_REF_NAME)" -ItemType Directory -Force | |
Move-Item -Path ".\DISMTools\DISMTools\Installer\Nightly\dt_setup.exe" ".\dt-nightly-installers\$($env:GITHUB_REF_NAME)\dt_setup.exe" -Force | |
cd .\dt-nightly-installers | |
git commit -m "DISMTools Nightly Installer ($($env:GITHUB_REF_NAME))" | |
git push | |
if: success() |