Copy files to GitHub Workspace

Viewed 5903

I have a few steps to copy some folders from source code to GitHub WorkSpace as shown below. On running this build I see

Warning: No files were found with the provided path: ${GITHUB_WORKSPACE}. No artifacts will be uploaded.

I checked and confirmed that both folders are not empty. What am I missing?

   - name: copy arm templates
      run: Copy 'Infrastructure/' '${GITHUB_WORKSPACE}/Infrastructure'
      shell: powershell
      
    - name: copy release management scripts
      run: Copy 'Scripts/' '${GITHUB_WORKSPACE}/Scripts'
      shell: powershell
      
    - name: publish artifact
      uses: actions/upload-artifact@v2
      with:
        path: ${GITHUB_WORKSPACE}
        name: ${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}
  
1 Answers
Related