简体   繁体   中英

Folder missing in artifact - GitHub Actions

I have the following steps to copy files to artifact and publish artifact:

   - 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/**

The Build succeeded however after downloading the artifact, I don't see a folder named functions_arm_templates. What am I missing?

You are only copying the folder without its contents.

Use copy 'Service/Project/Hosts/FA/Infrastructure/' 'upload/functions_arm_templates/FA/Infrastructure/' -recurse to copy the folder with its contents.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM