Skip to content
Merged
Show file tree
Hide file tree
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
34 changes: 29 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ jobs:
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-

- name: Build and export
env:
IPNS_HASH: ${{ secrets.IPNS_HASH }}
run: pnpm export

- name: Upload build artifacts
Expand Down Expand Up @@ -156,6 +154,7 @@ jobs:
env:
IPFS_DEPLOY_URL: https://ipfs.nipsys.dev/api/deploy
IPFS_API_KEY: ${{ secrets.IPFS_API_KEY }}
PIN_4EVER_TOKEN: ${{ secrets.PIN_4EVER_TOKEN }}
run: |
# Create tar.gz of the site
tar -czf site.tar.gz -C out .
Expand All @@ -168,17 +167,42 @@ jobs:

echo "Deploy response: $RESPONSE"

# Extract info from response
HASH=$(echo "$RESPONSE" | jq -r '.hash')
IPFS_HASH=$(echo "$RESPONSE" | jq -r '.hash')
IPNS_HASH=$(echo "$RESPONSE" | jq -r '.ipns_hash')
SUCCESS=$(echo "$RESPONSE" | jq -r '.success')

if [ "$SUCCESS" = "true" ]; then
echo "✅ Deploy successful!"
echo "IPFS Hash: $HASH"
echo "IPFS Hash: $IPFS_HASH"
echo "IPNS Name: $IPNS_HASH"
echo "Site available at: https://nipsys.eth.limo"
else
echo "❌ Deploy failed"
exit 1
fi

# Pinning attempt on 3rd party gateways
echo "Pinning to 4EVERLand"

LIST_RESP=$(curl --request GET \
--url https://api.4everland.dev/pins \
--header "authorization: Bearer $PIN_4EVER_TOKEN")

REQUESTID=$(echo "$LIST_RESP" | jq -r '.results[] | select(.pin.name == "site") | .requestid')

if [ -z "$REQUESTID" ]; then
echo "⚠️ WARNING: No matching pin found for name 'site' in 4EVERLand. Skipping pin request."
exit 0
fi

PIN_RESP=$(curl --request POST \
--url https://api.4everland.dev/pins/$REQUESTID \
--header "authorization: Bearer $PIN_4EVER_TOKEN" \
--header "content-type: application/json" \
--data '{
"cid": "'$IPFS_HASH'",
"name": "site"
}')

PIN_STATUS=$(echo "$PIN_RESP" | jq -r '.status')
echo "PINNING STATUS: $PIN_STATUS"
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ Licensed under GPL-3.0.

## status

Still a work in progress, but it is live on IPFS:
Still a work in progress, but it already lives on the InterPlanetary FileSystem:

- IPNS: `k2k4r8ng8uzrtqb5ham8kao889m8qezu96z4w3lpinyqghum43veb6n3`
- Through gateway: https://nipsys.eth.limo
- IPNS Hash: `k2k4r8ng8uzrtqb5ham8kao889m8qezu96z4w3lpinyqghum43veb6n3`
- [Access through eth.limo](https://nipsys.eth.limo)
- [Access through dweb.link](https://k2k4r8ng8uzrtqb5ham8kao889m8qezu96z4w3lpinyqghum43veb6n3.ipns.dweb.link/)

## current state

Expand Down
Binary file modified src/app/favicon.ico
Binary file not shown.