Yapıyı GitHub Eylemine yükle

Sep 23 2020

Yapının 'Komut Dosyaları' adlı bir klasör içermesi ve tüm dosyaların 'Komut Dosyaları' klasörüne kopyalanması için aşağıdaki kodu nasıl güncellerim?

 - 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 }}

Yanıtlar

ItayBrenner Sep 23 2020 at 23:00

Bunu kullanabilirsiniz:

 - 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 }}

Yapıtınız ile istediğiniz dosyalar arasında bir klasör oluşturun