Skip to content

Commit

Permalink
[build] Bump actions/upload-artifact to v4 and adjust workflows
Browse files Browse the repository at this point in the history
Authored by: bashonly
  • Loading branch information
bashonly committed Feb 11, 2024
1 parent 0af882d commit b29aa4b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ jobs:
done
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ github.job }}
path: |
yt-dlp
yt-dlp.tar.gz
Expand Down Expand Up @@ -224,8 +225,9 @@ jobs:
fi
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ github.job }}-${{ matrix.architecture }}
path: | # run-on-arch-action designates armv7l as armv7
repo/dist/yt-dlp_linux_${{ (matrix.architecture == 'armv7' && 'armv7l') || matrix.architecture }}
Expand Down Expand Up @@ -266,8 +268,9 @@ jobs:
[[ "$version" != "$downgraded_version" ]]
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ github.job }}
path: |
dist/yt-dlp_macos
dist/yt-dlp_macos.zip
Expand Down Expand Up @@ -317,8 +320,9 @@ jobs:
[[ "$version" != "$downgraded_version" ]]
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ github.job }}
path: |
dist/yt-dlp_macos_legacy
Expand Down Expand Up @@ -364,8 +368,9 @@ jobs:
}
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ github.job }}
path: |
dist/yt-dlp.exe
dist/yt-dlp_min.exe
Expand Down Expand Up @@ -410,8 +415,9 @@ jobs:
}
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ github.job }}
path: |
dist/yt-dlp_x86.exe
Expand All @@ -427,7 +433,11 @@ jobs:
- windows32
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: artifact
pattern: artifact-*
merge-multiple: true

- name: Make SHA2-SUMS files
run: |
Expand Down Expand Up @@ -462,8 +472,10 @@ jobs:
done
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact
path: |
artifact/*
SHA*SUMS*
_update_spec
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
- uses: actions/setup-python@v5
with:
python-version: "3.10"
Expand Down

0 comments on commit b29aa4b

Please sign in to comment.