Skip to content

Commit

Permalink
ci: update upload and download actions
Browse files Browse the repository at this point in the history
- upload uses unique names for artifacts
- download merges unique artifacts to single loc
  • Loading branch information
gnikit committed Jan 21, 2024
1 parent 125cb4f commit 3ce5561
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}


Expand All @@ -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'
Expand Down Expand Up @@ -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' }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit 3ce5561

Please sign in to comment.