-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dev: fix double backslash on download and install path apply StreamerMode at start fix init script Fetch (if didnt have scripts/ folder) Update main.yml Update main.yml #GITBUILD Update main.yml #GITBUILD Update main.yml add timestamp #GITBUILD Update main.yml for #GITBUILD Update ArtifactBuild.cmd #TEST Update main.yml #TEST Update main.yml #TEST Create ArtifactBuild.cmd Create Build.cmd Create main.yml #TEST
- Loading branch information
Showing
5 changed files
with
103 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
name: CI | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: windows-2019 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Check Commit and Install 7Zip PowerShell Module | ||
shell: powershell | ||
|
||
run: | | ||
# cancel early, if not build commit | ||
$strVal ='${{ github.event.commits[0].message }}' | ||
if($strVal -clike '*#GITBUILD*') | ||
{ | ||
Write-Host 'True' | ||
} else { | ||
Write-Host 'False' | ||
exit(1) | ||
} | ||
Install-Module 7Zip4PowerShell -Force -Verbose | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Restore NuGet packages | ||
run: nuget restore UnityLauncherPro.sln | ||
|
||
- name: Build Binary | ||
shell: cmd | ||
run: call .\Build.cmd | ||
|
||
- name: Build Artifact | ||
shell: cmd | ||
run: call .\ArtifactBuild.cmd | ||
|
||
- name: Get current date and time | ||
id: datetime | ||
run: echo "::set-output name=current_datetime::$(date +'%d/%m/%Y %H:%M')" | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{github.run_number}} | ||
release_name: ${{ steps.datetime.outputs.current_datetime }} (${{ github.run_number }}) | ||
body: | | ||
Automated Release by GitHub Action CI | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./UnityLauncherPro.zip | ||
asset_name: UnityLauncherPro.zip | ||
asset_content_type: application/zip | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@echo off | ||
pushd "%~dp0" | ||
powershell Compress-7Zip "UnityLauncherPro\bin\Release\UnityLauncherPro.exe" -ArchiveFileName "UnityLauncherPro.zip" -Format Zip | ||
:exit | ||
popd | ||
@echo on |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo off | ||
pushd "%~dp0" | ||
if exist Debug rd /s /q Debug | ||
if exist Release rd /s /q Release | ||
if exist x64 rd /s /q x64 | ||
|
||
"%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release | ||
|
||
:exit | ||
popd | ||
@echo on |
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
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