Skip to content

Commit 0d34a3a

Browse files
authored
Update main.yml #GITBUILD test installer build
1 parent 3aa6e84 commit 0d34a3a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

+24
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@ jobs:
6565
shell: cmd
6666
run: call .\ArtifactBuild.cmd
6767

68+
# Bump version for installer
69+
- name: Bump Installer Version
70+
if: env.build_trigger == 'true'
71+
shell: cmd
72+
run: call .\InstallerBumpVersion.bat
73+
74+
# Build MSI installer project
75+
- name: Build Installer MSI
76+
if: env.build_trigger == 'true'
77+
shell: cmd
78+
run: |
79+
msbuild UnityLauncherProInstaller\UnityLauncherProInstaller.vdproj /p:Configuration=Release
80+
6881
# Get the current date and time
6982
- name: Get current date and time
7083
id: datetime
@@ -123,3 +136,14 @@ jobs:
123136
asset_name: UnityLauncherPro.zip
124137
asset_content_type: application/zip
125138

139+
# Upload MSI installer to release
140+
- name: Upload MSI Installer
141+
if: env.build_trigger == 'true'
142+
uses: actions/upload-release-asset@v1
143+
env:
144+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145+
with:
146+
upload_url: ${{ steps.create_release.outputs.upload_url }}
147+
asset_path: ./UnityLauncherProInstaller/Release/UnityLauncherPro-Installer.msi
148+
asset_name: UnityLauncherPro-Installer.msi
149+
asset_content_type: application/x-msi

0 commit comments

Comments
 (0)