-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (54 loc) · 1.97 KB
/
RepulserEngineBuildWorkflow.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: StandaloneWindows64
on:
push:
tags:
- '*'
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
with:
lfs: true
clean: false
- name: Get the version
id: get_version
shell: cmd
run: |
set A="::set-output name=TAG::"
set B=${{github.ref}}
echo %A:"=%%B:refs/tags/=%
- name: Check Version
run: echo ${{ steps.get_version.outputs.TAG }}
- name: Encryption
shell: cmd
run: 'copy /Y ${{secrets.ENCRYPT_INFO_SRC}} ${{secrets.ENCRYPT_INFO_DST}}'
- name: Windows
shell: cmd
run: '"C:/Program Files/Unity/Hub/Editor/2021.1.10f1/Editor/Unity.exe" -quit -batchmode -nographics -silent-crashes -logFile - -projectPath ${{secrets.UNITY_PROJECT_PATH}} -executeMethod BuildScripts.BuildStandaloneWindows64 -buildTarget StandaloneWindows64 -locationPathName ${{secrets.EXE_BUILD_PATH}} -githubref ${{github.ref}}'
- name: Preprocess Inno Scripts
shell: cmd
run: ${{secrets.INNO_PREPROCESS_EXE_PATH}} ${{github.ref}}
- name: Create Installer
shell: cmd
run: 'iscc "${{secrets.ISS_PATH}}"'
- name: Create release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{secrets.INSTALLER_DIR}}\RepulserEngine_v${{ steps.get_version.outputs.TAG }}_Setup.exe
asset_name: RepulserEngine_v${{ steps.get_version.outputs.TAG }}_Setup.exe
asset_content_type: application/exe