1
0

dotnet-desktop.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: .NET Core Desktop
  2. on:
  3. push:
  4. paths:
  5. - 'Plain Craft Launcher 2.sln'
  6. - 'Plain Craft Launcher 2/**'
  7. - '.github/workflows/**'
  8. pull_request:
  9. paths:
  10. - 'Plain Craft Launcher 2.sln'
  11. - 'Plain Craft Launcher 2/**'
  12. - '.github/workflows/**'
  13. jobs:
  14. build:
  15. strategy:
  16. matrix:
  17. configuration: [Debug, Release]
  18. runs-on: windows-latest
  19. env:
  20. Solution_Name: Plain Craft Launcher 2.sln
  21. Wap_Project_Directory: Plain Craft Launcher 2
  22. Wap_Project_Path: Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj
  23. steps:
  24. - name: Checkout
  25. uses: actions/checkout@v4
  26. with:
  27. fetch-depth: 0
  28. # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
  29. - name: Setup MSBuild.exe
  30. uses: microsoft/setup-msbuild@v2
  31. # Restore the application to populate the obj folder with RuntimeIdentifiers
  32. - name: Restore the application
  33. run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
  34. env:
  35. Configuration: ${{ matrix.configuration }}
  36. # Create the app package by building and packaging the Windows Application Packaging project
  37. - name: Create the app package
  38. run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle
  39. env:
  40. Appx_Bundle: Always
  41. Appx_Bundle_Platforms: x86|x64
  42. Appx_Package_Build_Mode: StoreUpload
  43. Configuration: ${{ matrix.configuration }}
  44. # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
  45. - name: Upload build artifacts
  46. uses: actions/upload-artifact@v4
  47. with:
  48. name: ${{ matrix.configuration }}
  49. path: ${{ env.Wap_Project_Directory }}\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe