Skip to content

Update assembly information #390

Update assembly information

Update assembly information #390

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
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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: |
$ghAction = "yes"
$solutionDir = "$((Get-Location).Path)\"
$projectDir = "$((Get-Location).Path)\"
$targetDir = (Get-Location).Path + "\bin\Debug\"
iex "$($solutionDir)CheckMissingDlls.ps1"
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: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: build-result
path: ${{ github.workspace }}\Installer\Nightly\dt_setup.exe
upload-installer:
runs-on: ubuntu-latest
needs: build-runspace
steps:
- uses: actions/checkout@v4
- name: Grab Artifacts
uses: actions/download-artifact@v4
with:
name: build-result
path: ./downloaded_artifacts
- name: Prepare directory
run: |
mkdir "./${{ GITHUB.REF_NAME }}"
mv -f "./downloaded_artifacts/dt_setup.exe" "./${{ GITHUB.REF_NAME }}/dt_setup.exe"
rm -rf "./downloaded_artifacts"
- name: Upload Installer
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
uses: cpina/github-action-push-to-another-repository@main
with:
source-directory: '${{ GITHUB.REF_NAME }}'
destination-github-username: 'CodingWonders'
destination-repository-name: 'dt-nightly-installers'
user-email: '[email protected]'
target-directory: '${{ GITHUB.REF_NAME }}'
target-branch: main