GitHub 작업에서 아티팩트 업로드
Sep 23 2020
아티팩트에 'Scripts'라는 폴더가 포함되고 모든 파일이 'Scripts'폴더에 복사되도록 다음 코드를 어떻게 업데이트합니까?
- name: copy scripts
run: Copy 'Scripts/' '${{ github.workspace }}/Scripts' shell: powershell - name: publish artifact uses: actions/upload-artifact@v2 with: path: ${{ github.workspace }}/Scripts
name: ${{ github.run_number }}
답변
ItayBrenner Sep 23 2020 at 23:00
이것을 사용할 수 있습니다 :
- name: Create Artifact Folder
run: New-Item -Path '${{ github.workspace }}' -Name "Artifacts" -ItemType "directory" shell: powershell - name: Copy Scripts run: Copy 'Scripts/' '${{ github.workspace }}/Artifacts/Scripts'
shell: powershell
- name: Publish Artifact
uses: actions/upload-artifact@v2
with:
path: ${{ github.workspace }}/Artifacts name: ${{ github.run_number }}
아티팩트와 원하는 파일 사이에 폴더를 만드십시오.