dotnet-desktop.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: [Beta, Debug, Release, ReleaseUpdate]
  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
  39. env:
  40. Configuration: ${{ matrix.configuration }}
  41. # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
  42. - name: Upload build artifacts
  43. uses: actions/upload-artifact@v4
  44. with:
  45. name: ${{ matrix.configuration }}
  46. path: ${{ env.Wap_Project_Directory }}\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe