GitHub行动发布路径 [英] GitHub action to publish a path

查看:87
本文介绍了GitHub行动发布路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个构建yaml文件,如下所示:

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

在推送此Yaml文件时,我看到构建失败-项目文件不存在

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

我想念什么?

推荐答案

明确指定要发布的项目

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

原因:您不能同时发布多个项目,请参见 https://github.com/dotnet/sdk/issues/7238 .

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

这篇关于GitHub行动发布路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆