|
1 | | -name: Aurora CD |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: [ master ] |
6 | | - |
7 | | -jobs: |
8 | | - |
9 | | - build: |
10 | | - |
11 | | - strategy: |
12 | | - matrix: |
13 | | - configuration: [Release] |
14 | | - |
15 | | - 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 |
17 | | - |
18 | | - env: |
19 | | - Solution_Name: Project-Aurora/Project-Aurora.sln |
20 | | - |
21 | | - 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 |
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: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration |
53 | | - env: |
54 | | - Configuration: ${{ matrix.configuration }} |
55 | | - |
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 }} |
63 | | - |
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) |
70 | | - |
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 |
76 | | - |
77 | | - - name: Archive Build |
78 | | - shell: pwsh |
79 | | - run: | |
80 | | - Compress-Archive .\Build\Release\* Aurora-v${{steps.buildnumber.outputs.build_number}}.zip |
81 | | - |
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 |
| 1 | +name: Aurora CD |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ master ] |
| 6 | + |
| 7 | +jobs: |
| 8 | + |
| 9 | + build: |
| 10 | + |
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + configuration: [Release] |
| 14 | + |
| 15 | + 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 |
| 17 | + |
| 18 | + env: |
| 19 | + Solution_Name: Project-Aurora/Project-Aurora.sln |
| 20 | + |
| 21 | + 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 |
| 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: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration |
| 53 | + env: |
| 54 | + Configuration: ${{ matrix.configuration }} |
| 55 | + |
| 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 }} |
| 63 | + |
| 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) |
| 70 | + |
| 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 |
| 76 | + |
| 77 | + - name: Archive Build |
| 78 | + shell: pwsh |
| 79 | + run: | |
| 80 | + Compress-Archive .\Build\Release\* Aurora-v${{steps.buildnumber.outputs.build_number}}.zip |
| 81 | + |
| 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 |
0 commit comments