Continuous integration failed - File not found - github-actions-for-desktop-apps

Jean-Marc Flamand 31 Reputation points
2022-05-21T12:36:46.977+00:00

Ref my Github workflow job : [update CI workflows CI.NET 6.0 Desktop #9][1] I'm learning [CI/CD from microsoft / github-actions-for-desktop-apps Repos][2] In my Github workflow job, No files were found with the provided path: MPC-MassPropertiesCalculator.Installer\AppPackages. No artifacts will be uploaded. But according to the image below, the local publihed path look Ok. Can you help me to solve the "Upload build Artifacts" step. > Run actions/upload-artifact@v3 > with: > name: MSIX Package > path: MPC-MassPropertiesCalculator.Installer\AppPackages > if-no-files-found: warn > env: > App_Packages_Directory: AppPackages > Solution_Name: MPC-MassPropertiesCalculatorApp.sln > Wap_Project_Directory: MPC-MassPropertiesCalculator.Installer > Wap_Project_Path: MPC-MassPropertiesCalculator.Installer\MPC-MassPropertiesCalculator.Installer.wapproj > DOTNET_ROOT: C:\Users\runneradmin\AppData\Local\Microsoft\dotnet > Warning: No files were found with the provided path: MPC-MassPropertiesCalculator.Installer\AppPackages. No artifacts will be uploaded. ![204217-image.png][3] Here the complete CI-dotnet6.0-desktop.yml source code name: CI.NET 6.0 Desktop on: push: branches: [ main ] # pull_request: # branches: [ main ] jobs: build: strategy: matrix: configuration: [Release] runs-on: windows-2022 # 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: App_Packages_Directory: AppPackages Solution_Name: MPC-MassPropertiesCalculatorApp.sln # Replace with your solution name, i.e. MyWpfApp.sln. #Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. Wap_Project_Directory: MPC-MassPropertiesCalculator.Installer # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. Wap_Project_Path: MPC-MassPropertiesCalculator.Installer\MPC-MassPropertiesCalculator.Installer.wapproj # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj. steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 # Install the .NET 6 workload - name: Install .NET 6.0 uses: actions/setup-dotnet@v2 with: dotnet-version: 6.0.x # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v1.0.2 # Execute all unit tests in the solution #- name: Execute unit tests # run: dotnet test - name: .NET Restore run: dotnet restore ${<!-- -->{ env.Solution_Path }} --runtime $env:RuntimeIdentifier env: RuntimeIdentifier: win-x64 # Restore the application to populate the obj folder with RuntimeIdentifiers #- name: Restore the application # run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration # env: # Configuration: ${<!-- -->{ matrix.configuration }} # 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) # Build and create MSIX package from https://github.com/microsoft/github-actions-for-desktop-apps/blob/lance/net6-update/.github/workflows/ci-net6-temp.yml - name: Build the Console project in MSIX package mode run: msbuild ${<!-- -->{ env.Solution_Path }} /p:Platform=$env:TargetPlatform /p:RuntimeIdentifier=$env:RuntimeIdentifier /p:Configuration=$env:Configuration /p:AppxBundlePlatforms=$env:Appx_Bundle_Platforms /p:UapAppxPackageBuildMode=$env:BuildMode /p:AppxBundle=$env:AppxBundle /p:AppxPackageDir="$env:AppxPackageDir" /p:GenerateAppxPackageOnBuild=$env:GenerateAppPackage /p:AppxPackageSigningEnabled=$env:SigningEnabled /p:PackageCertificateKeyFile=${<!-- -->{ env.Signing_Certificate }} /p:PackageCertificatePassword=${<!-- -->{ secrets.Pfx_Key }} env: AppxBundle: Never BuildMode: SideloadOnly AppxPackageDir: ${<!-- -->{ env.GITHUB_ACTION_PATH }}\${<!-- -->{ env.App_Packages_Directory }} Configuration: Release TargetPlatform: x64 RuntimeIdentifier: win-x64 AppxBundlePlatforms: x64 # x86|x64|arm|arm64 SigningEnabled: false GenerateAppPackage: true # Create the app package by building and packaging the Windows Application Packaging project #- name: Create the app package # run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${<!-- -->{ secrets.Pfx_Key }} # env: # Appx_Bundle: never # Appx_Bundle_Platforms: x64 # Appx_Package_Build_Mode: SideloadOnly # Configuration: ${<!-- -->{ matrix.configuration }} # Remove the pfx - name: Remove the pfx run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact - name: Upload build artifacts uses: actions/upload-artifact@v3 with: name: MSIX Package path: ${<!-- -->{ env.Wap_Project_Directory }}\AppPackages [1]: https://github.com/JeanMarcFlamand/MPC-MassPropertiesCalculator/runs/6509224847?check_suite_focus=true#step:9:13 [2]: https://github.com/microsoft/github-actions-for-desktop-apps [3]: /api/attachments/204217-image.png?platform=QnA

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
767 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Samah Abdullah Abu El-Yazied 26 Reputation points
    2022-05-27T06:05:28.447+00:00

    He is the executive chairman and CEO of Microsoft, succeeding Steve Ballmer in 2014 as CEO and John W. Thompson in 2021 as chairman.

    0 comments No comments

  2. Samah Abdullah Abu El-Yazied 26 Reputation points
    2023-05-27T04:32:41.4766667+00:00

    Nice Topic

    0 comments No comments