mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-05 09:13:47 -04:00
[misc] update workflows to use upload-artifact@v4
* See actions/upload-artifact#483, actions/upload-artifact#472#issuecomment-1861571655 and ultimately https://github.com/actions/upload-artifact/blob/main/merge/README.md.
This commit is contained in:
parent
1be7eaf306
commit
164d4b0ab0
3 changed files with 31 additions and 9 deletions
15
.github/workflows/mingw.yml
vendored
15
.github/workflows/mingw.yml
vendored
|
@ -96,7 +96,18 @@ jobs:
|
|||
|
||||
- name: Upload artifacts
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: MinGW
|
||||
name: ${{ matrix.sys }}
|
||||
path: ./*.exe
|
||||
|
||||
Extra-Step-To-Merge-Artifacts-Thanks-To-Upload-Artifact-v4-Breaking-Backwards-Compatibility:
|
||||
runs-on: windows-latest
|
||||
needs: MinGW-Build
|
||||
steps:
|
||||
- name: Merge Artifacts
|
||||
uses: actions/upload-artifact/merge@v4
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
with:
|
||||
name: MinGW
|
||||
delete-merged: true
|
15
.github/workflows/vs2022.yml
vendored
15
.github/workflows/vs2022.yml
vendored
|
@ -86,10 +86,21 @@ jobs:
|
|||
curl --request POST --url https://www.virustotal.com/api/v3/monitor/items --header 'x-apikey: ${{ secrets.VIRUSTOTAL_API_KEY }}' --form path='/rufus_${{ matrix.TARGET_PLATFORM }}.exe' --form file=@./rufus_${{ matrix.TARGET_PLATFORM }}.exe
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
with:
|
||||
name: VS2022
|
||||
name: ${{ matrix.TARGET_PLATFORM }}
|
||||
path: |
|
||||
./*.exe
|
||||
./*.pdb
|
||||
|
||||
Extra-Step-To-Merge-Artifacts-Thanks-To-Upload-Artifact-v4-Breaking-Backwards-Compatibility:
|
||||
runs-on: windows-latest
|
||||
needs: VS2022-Build
|
||||
steps:
|
||||
- name: Merge Artifacts
|
||||
uses: actions/upload-artifact/merge@v4
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
with:
|
||||
name: VS2022
|
||||
delete-merged: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue