Skip to content

Commit 9758bc0

Browse files
committed
fix: release file
1 parent 627f59b commit 9758bc0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release-aws-s3.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ jobs:
8080
curl -L --fail -o "$f" "$url"
8181
done
8282
83+
- name: Fetch existing releases.json from S3 (if any)
84+
env:
85+
BUCKET: ${{ env.BUCKET }}
86+
run: |
87+
mkdir -p meta
88+
if aws s3 ls "s3://$BUCKET/releases/releases.json" >/dev/null 2>&1; then
89+
echo "Found existing releases.json in S3. Downloading..."
90+
aws s3 cp "s3://$BUCKET/releases/releases.json" meta/releases.json
91+
else
92+
echo "No releases.json in S3. Initializing with empty array."
93+
echo '[]' > meta/releases.json
94+
fi
95+
8396
- name: Build/merge releases.json (keep max N entries)
8497
env:
8598
TAG: ${{ steps.rel.outputs.tag }}

0 commit comments

Comments
 (0)