ci/cd: centralize and bump artifact uploads

- Upgrade `actions/upload-artifact` to `v4` to address deprecation
  warnings related to Node.js 16, improving compatibility with GitHub
  runners. This resolves the following warning from the runners:
  > Node.js 16 actions are deprecated. Please update the following actions
  > to use Node.js 20: actions/upload-artifact@v3.
- Centralize the use of the `upload-artifact` action through a new
  custom action, improving maintainability and consistency across
  workflows.
This commit is contained in:
undergroundwires
2024-05-28 12:53:45 +02:00
parent 795b7f0321
commit 22d6c7991e
3 changed files with 18 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ jobs:
-
name: Upload screenshot
if: always() # Run even if previous step fails
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-artifact
with:
name: screenshot-${{ matrix.os }}
path: screenshot.png