![](/img/trans.png)
[英]Does GitHub Actions download-artifact create an archive or folder structure?
[英]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.