From 72b86484b3089c6b088975b7e4e31652b785c875 Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Tue, 19 Dec 2023 07:42:25 +0800 Subject: [PATCH] ci: batch download temp artifacts Use new `actions/download-artifact@v4` inputs `pattern` and `merge-multiple`, introduced in v4.1.0. See - https://github.com/actions/download-artifact/releases/tag/v4.1.0 - https://github.com/actions/download-artifact/tree/v4.1.0?tab=readme-ov-file#download-multiple-filtered-artifacts-to-the-same-directory --- .github/workflows/cd.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8f3028dfb2..091aa4c6d1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -241,20 +241,11 @@ jobs: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') steps: - - name: Download Windows release asset(s) + - name: Download temp artifacts uses: actions/download-artifact@v4 with: - name: release-win - - - name: Download Linux release asset(s) - uses: actions/download-artifact@v4 - with: - name: release-linux - - - name: Download OS X release asset(s) - uses: actions/download-artifact@v4 - with: - name: release-osx + pattern: release-* + merge-multiple: true - name: Calculate hashes run: |