Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
发布到工件中的单独文件夹(GitHub操作)_Github_Github Actions - Fatal编程技术网

发布到工件中的单独文件夹(GitHub操作)

发布到工件中的单独文件夹(GitHub操作),github,github-actions,Github,Github Actions,我有以下步骤来发布和上载一些文件: - name: dotnet publish FA1 run: dotnet publish Service/FA1/FA1.csproj --configuration Release --output fa1_publish_output - name: publish FA1 files uses: actions/upload-artifact@v2 with: name: ${

我有以下步骤来发布和上载一些文件:

   - name: dotnet publish FA1
     run: dotnet publish Service/FA1/FA1.csproj --configuration Release --output fa1_publish_output
    
    - name: publish FA1 files
      uses: actions/upload-artifact@v2
      with:
        name: ${{github.run_number}}
        path: |
          fa1_publish_output

    - name: dotnet publish FA2
      run: dotnet publish Service/FA2/FA2.csproj --configuration Release --output fa2_publish_output
    
    - name: publish FA2 files
      uses: actions/upload-artifact@v2
      with:
        name: ${{github.run_number}}
        path: |
          fa2_publish_output
fa1_publish_输出包含一个文件host.json和一个文件夹fa1

fa2_publish_输出包含一个文件host.json和一个文件夹fa2

构建成功,但在下载工件后,我看到以下结构:

有没有办法更新上面的代码,使工件包含以下结构

fa1_app -> host.json
           fa1

fa2_app -> host.json
           fa2

   - name: dotnet publish FA1
     run: dotnet publish Service/FA1/FA1.csproj --configuration Release --output fa1_app
       
    - name: dotnet publish FA2
      run: dotnet publish Service/FA2/FA2.csproj --configuration Release --output fa2_app
    
    - name: publish files to artifact
      uses: actions/upload-artifact@v2
      with:
        name: ${{github.run_number}}
        path: |
          fa1_app
          fa2_app