@@ -10,82 +10,92 @@ jobs:
1010
1111 strategy :
1212 matrix :
13- configuration : [Release]
13+ configuration : [ Release ]
1414
1515 runs-on : windows-2019 # For a list of available runner types, refer to
16- # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
16+ # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
1717
1818 env :
1919 Solution_Name : Project-Aurora/Project-Aurora.sln
2020
2121 steps :
22- - name : Generate build number
23- id : buildnumber
24- uses : einaregilsson/build-number@v3
25- with :
26- token : ${{secrets.github_token}}
27-
28- - uses : rishabhgupta/split-by@v1
29- id : split
30- with :
31- string : ${{github.repository}}
32- split-by : ' /'
33-
34- - name : Checkout
35- uses : actions/checkout@v2
36- with :
37- fetch-depth : 0
38- submodules : true
39-
40- # Install the .NET Core workload
41- - name : Install .NET Core
42- uses : actions/setup-dotnet@v1
43- with :
44- dotnet-version : 5.0.x
22+ - name : Generate build number
23+ id : buildnumber
24+ uses : einaregilsson/build-number@v3
25+ with :
26+ token : ${{secrets.github_token}}
4527
46- # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
47- - name : Setup MSBuild.exe
48- uses : microsoft/setup-msbuild@v1.0.2
28+ - uses : rishabhgupta/split-by@v1
29+ id : split
30+ with :
31+ string : ${{github.repository}}
32+ split-by : ' /'
4933
50- # Restore the application to populate the obj folder with RuntimeIdentifiers
51- - name : Restore the application
52- run : msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
53- env :
54- Configuration : ${{ matrix.configuration }}
34+ - name : Checkout
35+ uses : actions/checkout@v2
36+ with :
37+ fetch-depth : 0
38+ submodules : true
39+
40+ # Install the .NET Core workload
41+ - name : Install .NET Core
42+ uses : actions/setup-dotnet@v2
43+ with :
44+ dotnet-version : 6.0.x
45+
46+ # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
47+ - name : Setup MSBuild.exe
48+ uses : microsoft/setup-msbuild@v1.0.2
49+
50+ # Restore the application to populate the obj folder with RuntimeIdentifiers
51+ - name : Restore the application
52+ run : dotnet restore $env:Solution_Name
53+ env :
54+ Configuration : ${{ matrix.configuration }}
5555
56- - name : Build
57- run : msbuild $env:Solution_Name /p:Configuration=$env:Configuration
58- env :
59- APPVEYOR_BUILD_VERSION : v${{steps.buildnumber.outputs.build_number}}
60- OWNER : ${{ steps.split.outputs._0 }}
61- REPOSITORY : ${{ steps.split.outputs._1 }}
62- Configuration : ${{ matrix.configuration }}
56+ - name : Restore msbuild
57+ run : msbuild Project-Aurora/Project-Aurora-MSBuild.sln /t:Restore /p:Configuration=$env:Configuration
58+ env :
59+ Configuration : ${{ matrix.configuration }}
6360
64- # Decode the base 64 encoded pfx and save the Signing_Certificate
65- # - name: Decode the pfx
66- # run: |
67- # $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
68- # $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
69- # [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
61+ - name : Build msbuild
62+ run : msbuild Project-Aurora/Project-Aurora-MSBuild.sln /p:Configuration=$env:Configuration /p:Platform=x64
63+ env :
64+ Configuration : ${{ matrix.configuration }}
7065
71- # Create the app package by building and packaging the Windows Application Packaging project
72- - name : Building the installer
73- run : |
74- "%programfiles(x86)%\Inno Setup 6\iscc.exe" /DEXTERNAL_VERSION=${{steps.buildnumber.outputs.build_number}} Installer\installer.iss
75- shell : cmd
66+ - name : Build
67+ run : dotnet build $env:Solution_Name --configuration $env:Configuration --no-restore
68+ env :
69+ APPVEYOR_BUILD_VERSION : v${{steps.buildnumber.outputs.build_number}}
70+ OWNER : ${{ steps.split.outputs._0 }}
71+ REPOSITORY : ${{ steps.split.outputs._1 }}
72+ Configuration : ${{ matrix.configuration }}
7673
77- - name : Archive Build
78- shell : pwsh
79- run : |
80- Compress-Archive .\Build\Release\* Aurora-v${{steps.buildnumber.outputs.build_number}}.zip
74+ # Decode the base 64 encoded pfx and save the Signing_Certificate
75+ # - name: Decode the pfx
76+ # run: |
77+ # $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
78+ # $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
79+ # [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
8180
82- - name : Release
83- uses : softprops/action-gh-release@v1
84- with :
85- token : ${{ secrets.GITHUB_TOKEN }}
86- draft : true
87- files : |
88- Aurora-setup-v${{steps.buildnumber.outputs.build_number}}.exe
89- Aurora-v${{steps.buildnumber.outputs.build_number}}.zip
90- tag_name : v${{steps.buildnumber.outputs.build_number}}
91- allow_override : true
81+ # Create the app package by building and packaging the Windows Application Packaging project
82+ - name : Building the installer
83+ run : |
84+ "%programfiles(x86)%\Inno Setup 6\iscc.exe" /DEXTERNAL_VERSION=${{steps.buildnumber.outputs.build_number}} Installer\installer.iss
85+ shell : cmd
86+
87+ - name : Archive Build
88+ shell : pwsh
89+ run : |
90+ Compress-Archive .\Build\Release\* Aurora-v${{steps.buildnumber.outputs.build_number}}.zip
91+
92+ - name : Release
93+ uses : softprops/action-gh-release@v1
94+ with :
95+ token : ${{ secrets.GITHUB_TOKEN }}
96+ draft : true
97+ files : |
98+ Aurora-setup-v${{steps.buildnumber.outputs.build_number}}.exe
99+ Aurora-v${{steps.buildnumber.outputs.build_number}}.zip
100+ tag_name : v${{steps.buildnumber.outputs.build_number}}
101+ allow_override : true
0 commit comments