【问题标题】:Folder missing in artifact - GitHub Actions工件中缺少文件夹 - GitHub Actions
【发布时间】:2020-11-26 06:17:45
【问题描述】:

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

   - 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_arm_templates 的文件夹。我错过了什么?

【问题讨论】:

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

标签: github github-actions


【解决方案1】:

您只是在复制没有内容的文件夹。

使用copy 'Service/Project/Hosts/FA/Infrastructure/' 'upload/functions_arm_templates/FA/Infrastructure/' -recurse 复制文件夹及其内容。

【讨论】:

    猜你喜欢
    • 2013-03-12
    • 2021-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-20
    • 2019-05-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多