mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-10-31 02:11:57 +01:00
chore: update ipfs-deploy-action
This commit is contained in:
1 file changed
+19
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user