GitHub-Aktion zum Veröffentlichen eines Pfads

Sep 21 2020

Ich habe eine Build-Yaml-Datei wie folgt:

jobs:
  XYZBuildAndRelease:
    strategy:
      matrix:
        BuildConfiguration:
        - debug
        - release
      max-parallel: 2

    runs-on: windows-2019

    steps:  
   
    - name: List contents of a folder
      run: dir

    - name: dotnet publish graph updater
      run: dotnet publish Service/XYZ/Hosts.FA/*.csproj --configuration Release --output updater_publish_output

Beim Pushen dieser Yaml-Datei sehe ich, dass der Build fehlschlägt - Projektdatei existiert nicht

Was vermisse ich?

Antworten

1 riQQ Sep 23 2020 at 06:42

Geben Sie das zu veröffentlichende Projekt explizit an

- name: dotnet publish graph updater
  run: dotnet publish Service/GroupMembershipManagement/Hosts.GraphUpdater/Hosts.GraphUpdater.csproj --configuration Release --output updater_publish_output

Grund: Sie können nicht mehrere Projekte gleichzeitig veröffentlichen https://github.com/dotnet/sdk/issues/7238.