carica artefatto nell'azione GitHub
Sep 23 2020
Come aggiorno il codice seguente in modo che l'artefatto contenga una cartella denominata "Scripts" e tutti i file vengano copiati nella cartella "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 }}
Risposte
ItayBrenner Sep 23 2020 at 23:00
Puoi usare questo:
- 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 }}
Basta creare una cartella tra il tuo artefatto ei file desiderati