From 3ce55613f73eb78ae6e8013843cf9774fd848f92 Mon Sep 17 00:00:00 2001 From: gnikit Date: Sun, 21 Jan 2024 13:10:17 +0000 Subject: [PATCH] ci: update upload and download actions - upload uses unique names for artifacts - download merges unique artifacts to single loc --- .github/workflows/CI.yml | 12 +++++++----- .github/workflows/release.yml | 5 +++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2e22f72594..311ff2c51f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -183,7 +183,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: ${{ env.FPM_RELEASE }} + name: ${{ env.FPM_RELEASE }}-${{ matrix.os-arch }} path: ${{ env.FPM_RELEASE }} @@ -197,9 +197,10 @@ jobs: - uses: actions/checkout@v4 - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: - path: ${{ github.workspace }} # This will download all files + path: ${{ github.workspace }} + merge-multiple: true - name: Get version (normal) if: github.event_name != 'release' @@ -281,9 +282,10 @@ jobs: if: ${{ github.event_name == 'push' }} - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: - path: ${{ github.workspace }} # This will download all files + path: ${{ github.workspace }} + merge-multiple: true - name: Normalize file names for continuous delivery if: ${{ github.event_name == 'push' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f883af65fd..bf1e99bec6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -128,9 +128,10 @@ jobs: if: ${{ github.event_name == 'push' }} - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: - path: ${{ github.workspace }} # This will download all files + path: ${{ github.workspace }} + merge-multiple: true - name: Normalize file names for continuous delivery if: ${{ github.event_name == 'push' }}