user989988
user989988

Reputation: 3746

GitHub action to publish a path

I have a build yaml file as follows:

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

On pushing this yaml file, I see the build failing - Project file does not exist

What am I missing?

Upvotes: 0

Views: 612

Answers (1)

riQQ
riQQ

Reputation: 12733

Explicitly specifiy the project to publish

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

Reason: you can't publish multiple projects at the same time, see https://github.com/dotnet/sdk/issues/7238.

Upvotes: 1

Related Questions