Action GitHub pour publier un chemin

Sep 21 2020

J'ai un fichier yaml de construction comme suit:

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

En poussant ce fichier yaml, je vois l'échec de la construction - Le fichier projet n'existe pas

Qu'est-ce que je rate?

Réponses

1 riQQ Sep 23 2020 at 06:42

Spécifier explicitement le projet à publier

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

Raison: vous ne pouvez pas publier plusieurs projets en même temps, voir https://github.com/dotnet/sdk/issues/7238.