工件中缺少文件夹-GitHub操作

工件中缺少文件夹-GitHub操作,github,github-actions,Github,Github Actions,我有以下步骤将文件复制到工件并发布工件: - name: copy FA function arm templates run: Copy 'Service/Project/Hosts/FA/Infrastructure/' 'upload/functions_arm_templates/FA/Infrastructure' shell: powershell - name: copy FB function arm templates

我有以下步骤将文件复制到工件并发布工件:

   - name: copy FA function arm templates
     run: Copy 'Service/Project/Hosts/FA/Infrastructure/' 'upload/functions_arm_templates/FA/Infrastructure'
     shell: powershell
       
   - name: copy FB function arm templates
     run: Copy 'Service/Project/Hosts/FB/Infrastructure/' 'upload/functions_arm_templates/FB/Infrastructure'
     shell: powershell
    
   - name: publish artifact
     uses: actions/upload-artifact@v2
     with:
       name: ${{github.run_number}}
       path: upload/**

但是在下载工件之后,构建成功了,我没有看到名为functions\u arm\u templates的文件夹。我遗漏了什么?

您只是在复制文件夹,而没有复制其内容


使用
copy'Service/Project/Hosts/FA/Infrastructure/''upload/functions\u arm\u templates/FA/Infrastructure/'-recurse
复制文件夹及其内容。

请将
upload artifact
步骤的日志添加到您的帖子中。这些文件夹中有文件吗?