Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 19 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ jobs:
echo "Site available at: https://xav.gwei.site"

- name: Pin to 4EVERLand
id: pin-4everland
continue-on-error: true
env:
PIN_4EVER_TOKEN: ${{ secrets.PIN_4EVER_TOKEN }}
run: |
Expand Down Expand Up @@ -254,32 +256,9 @@ jobs:
echo "⚠️ TIMEOUT: Pin did not reach 'pinned' status within 60 seconds"
exit 1

- name: Pin to Pinata
env:
PINATA_JWT: ${{ secrets.PINATA_JWT }}
PINATA_CID: ${{ steps.deploy.outputs.cid }}
run: |
RESP=$(curl --silent --show-error --write-out '\n%{http_code}' \
--request POST \
--url https://api.pinata.cloud/v3/files/public/pin_by_cid \
--header "authorization: Bearer ${PINATA_JWT}" \
--header "content-type: application/json" \
--data "{\"cid\": \"${PINATA_CID}\", \"name\": \"site\"}")

HTTP_CODE=$(echo "$RESP" | tail -n1)
BODY=$(echo "$RESP" | sed '$d')

echo "Pinata pin-by-CID response (HTTP $HTTP_CODE):"
echo "$BODY"

if [ "$HTTP_CODE" != "200" ]; then
echo "❌ Pinata pin failed with HTTP $HTTP_CODE"
exit 1
fi

echo "✅ Pin accepted by Pinata (CID: ${PINATA_CID})"

- name: Pin to Filebase
id: pin-filebase
continue-on-error: true
env:
# Filebase IPFS Pinning Service API auth: a per-bucket Secret Access
# Token (Bearer).
Expand Down Expand Up @@ -363,3 +342,18 @@ jobs:

echo "⚠️ TIMEOUT: Pin did not reach 'pinned' status within 60 seconds"
exit 1

- name: Check pin results
if: always()
env:
EVERLAND_OUTCOME: ${{ steps.pin-4everland.outcome }}
FILEBASE_OUTCOME: ${{ steps.pin-filebase.outcome }}
run: |
echo "4EVERLAND: ${EVERLAND_OUTCOME} / Filebase: ${FILEBASE_OUTCOME}"

if [ "${EVERLAND_OUTCOME}" != "success" ] || [ "${FILEBASE_OUTCOME}" != "success" ]; then
echo "❌ One or more pin steps failed"
exit 1
fi

echo "✅ All pins succeeded"
Loading