Skip to content

Commit

Permalink
ci: Upgrade upload-artifact action to v4
Browse files Browse the repository at this point in the history
  `upload-artifact` v3 has been deprecated for a while now and Github
  Actions prevent its use now by automatically failing any job using it.

  Besides upgrading to the latest major version of the action, we add a
  compression level option that should better suit our needs (i.e. large
  files not easily compressed).
  See https://github.com/actions/upload-artifact/tree/v4.6.1?tab=readme-ov-file#usage
  • Loading branch information
taratatach committed Feb 27, 2025
1 parent 756cb9b commit 6112ec0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,11 @@ jobs:
gh-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Save artifacts
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Binaries
path: |
${{ github.workspace }}/dist/latest-linux.yml
${{ github.workspace }}/dist/Cozy[- ]Drive[- ]*.AppImage
retention-days: 5
compression-level: 0
3 changes: 2 additions & 1 deletion .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,12 @@ jobs:
apple-team-id: "${{ secrets.apple_team_id }}"
- name: Save artifacts
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Binaries
path: |
${{ github.workspace }}/dist/latest-mac.yml
${{ github.workspace }}/dist/Cozy[- ]Drive[- ]*.dmg
${{ github.workspace }}/dist/Cozy[- ]Drive[- ]*-mac.zip
retention-days: 5
compression-level: 0

0 comments on commit 6112ec0

Please sign in to comment.