fix screen capture objects initializing with profile saves #355
This file contains hidden or 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
| name: Aurora CD | |
| on: | |
| push: | |
| branches: [ master ] | |
| env: | |
| Configuration: Release | |
| jobs: | |
| build: | |
| runs-on: windows-latest # For a list of available runner types, refer to | |
| # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
| env: | |
| Solution_Name: Project-Aurora/Project-Aurora.sln | |
| steps: | |
| - uses: rishabhgupta/split-by@v1 | |
| id: split | |
| with: | |
| string: ${{github.repository}} | |
| split-by: '/' | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| # Install the .NET Core workload | |
| - name: Install .NET Core | |
| uses: actions/setup-dotnet@v2 | |
| with: | |
| dotnet-version: 10.0.x | |
| # Restore the application to populate the obj folder with RuntimeIdentifiers | |
| - name: Restore the application | |
| run: dotnet restore $env:Solution_Name | |
| - name: Generate build number | |
| id: buildnumber | |
| uses: einaregilsson/build-number@v3 | |
| with: | |
| token: ${{secrets.github_token}} | |
| - name: Build | |
| run: dotnet build $env:Solution_Name --configuration $env:Configuration --no-restore | |
| env: | |
| APPVEYOR_BUILD_VERSION: v${{steps.buildnumber.outputs.build_number}} | |
| OWNER: ${{ steps.split.outputs._0 }} | |
| REPOSITORY: ${{ steps.split.outputs._1 }} | |
| # Decode the base 64 encoded pfx and save the Signing_Certificate | |
| #- name: Decode the pfx | |
| # run: | | |
| # $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") | |
| # $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx | |
| # [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) | |
| # Create the app package by building and packaging the Windows Application Packaging project | |
| - name: Building the installer | |
| uses: Minionguyjpro/Inno-Setup-Action@v1.2.7 | |
| with: | |
| path: Installer\installer.iss | |
| options: /DEXTERNAL_VERSION=${{steps.buildnumber.outputs.build_number}} | |
| - name: Archive Build | |
| shell: pwsh | |
| run: | | |
| Compress-Archive .\Build\Release\win10-x64\* Aurora-v${{steps.buildnumber.outputs.build_number}}.zip | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| draft: true | |
| files: | | |
| Aurora-setup-v${{steps.buildnumber.outputs.build_number}}.exe | |
| Aurora-v${{steps.buildnumber.outputs.build_number}}.zip | |
| tag_name: v${{steps.buildnumber.outputs.build_number}} | |
| allow_override: true |