chore: update ipfs-deploy-action

This commit is contained in:
Daniel Norman committed 2026-10-14 10:27:23 +02:00
1 parent feb204ddda
commit 44552f2499
1 file changed
+19 -6
+19 -6
View File
@@ -44,16 +44,29 @@ jobs:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
- name: Deploy to IPFS
uses: ipshipyard/ipfs-deploy-action@v1
- name: Create IPFS CAR from build
uses: ipshipyard/ipfs-deploy-action@v3
id: deploy
with:
path-to-deploy: ${{ env.BUILD_PATH }}
cluster-url: "/dnsaddr/ipfs-websites.collab.ipfscluster.io"
cluster-user: ${{ secrets.CLUSTER_USER }}
cluster-password: ${{ secrets.CLUSTER_PASSWORD }}
cluster-pin-expire-in: ${{ github.event.workflow_run.head_branch != 'main' && '2160h' || '' }}
github-token: ${{ github.token }}
set-pr-comment: 'true'
set-github-status: 'true'
# Filebase unpacks and pins the CAR because of the import=car metadata
- name: Upload CAR to Filebase
env:
AWS_ACCESS_KEY_ID: ${{ secrets.FILEBASE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.FILEBASE_SECRET_KEY }}
AWS_REGION: us-east-1 # AWS CLI needs a region to sign; Filebase ignores it
FILEBASE_BUCKET: ${{ secrets.FILEBASE_BUCKET }}
CID: ${{ steps.deploy.outputs.cid }}
CAR_PATH: ${{ steps.deploy.outputs.car-path }}
run: |
OBJECT_KEY="${GITHUB_REPOSITORY//\//-}-${GITHUB_SHA:0:7}-${CID}.car"
aws --endpoint https://s3.filebase.com s3 cp \
"$CAR_PATH" "s3://${FILEBASE_BUCKET}/${OBJECT_KEY}" \
--metadata 'import=car'
dnslink-update:
runs-on: ubuntu-latest