ci: upgrade artifact actions to v4

- upload-artifact@v3 -> v4 (removed deprecated retention-days)
- download-artifact@v3 -> v4 with merge-multiple: true
- This flattens artifacts into the download path, simplifying the
  find/upload loop that uploads assets to Gitea
This commit is contained in:
2026-06-03 20:14:12 -03:00
parent b33ed90810
commit c83a7fe94b
+5 -7
View File
@@ -80,14 +80,11 @@ jobs:
echo "archive=$archive" >> "$GITHUB_OUTPUT" echo "archive=$archive" >> "$GITHUB_OUTPUT"
- name: Upload build artifact - name: Upload build artifact
# Gitea Actions doesn't support upload-artifact v4 (uses a uses: actions/upload-artifact@v4
# GitHub-only backend API); pin to v3.
uses: actions/upload-artifact@v3
with: with:
name: nuwiki-ls-${{ matrix.target }} name: nuwiki-ls-${{ matrix.target }}
path: ${{ steps.package.outputs.archive }} path: ${{ steps.package.outputs.archive }}
if-no-files-found: error if-no-files-found: error
retention-days: 7
release: release:
name: gitea release name: gitea release
@@ -95,11 +92,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download all build artifacts - name: Download all build artifacts
# Paired with upload-artifact@v3 above. v3 has no merge-multiple # upload-artifact@v4 + download-artifact@v4 with merge-multiple
# option and nests each artifact under its own subdirectory. # flattens all artifacts into the download path directly.
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
path: ./artifacts path: ./artifacts
merge-multiple: true
- name: Ensure jq + curl - name: Ensure jq + curl
run: | run: |