簡體   English   中英

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

[英]Folder missing in artifact - 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
     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 的文件夾。 我錯過了什么?

您只是在復制文件夾而不復制其內容。

使用copy 'Service/Project/Hosts/FA/Infrastructure/' 'upload/functions_arm_templates/FA/Infrastructure/' -recurse復制文件夾及其內容。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM