fix: Allow artifact index and manifest generation to continue on error

This commit is contained in:
Janez T
2025-10-22 19:27:37 +02:00
parent 3d678151af
commit 18cbdf678d

View File

@@ -657,6 +657,9 @@ jobs:
env: env:
R2_PUBLIC_URL: ${{ secrets.R2_PUBLIC_URL }} R2_PUBLIC_URL: ${{ secrets.R2_PUBLIC_URL }}
run: | run: |
# Don't exit on error - generate index for whatever artifacts exist
set +e
generate_index() { generate_index() {
local BUILD_DIR="$1" local BUILD_DIR="$1"
local BASE_URL="$2" local BASE_URL="$2"
@@ -1103,6 +1106,9 @@ jobs:
- name: Create build manifests - name: Create build manifests
run: | run: |
# Don't exit on error - create manifests for whatever artifacts exist
set +e
# Create manifest for build-specific directory (after index.html is generated) # Create manifest for build-specific directory (after index.html is generated)
cat > "r2-upload/unstable/${{ steps.metadata.outputs.build_prefix }}/manifest.json" <<EOF cat > "r2-upload/unstable/${{ steps.metadata.outputs.build_prefix }}/manifest.json" <<EOF
{ {