mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-10-31 02:11:57 +01:00
ci: publish car to ipfs cluster
also remove filebase
This commit is contained in:
1 file changed
+3
-15
@@ -52,21 +52,9 @@ jobs:
|
|||||||
github-token: ${{ github.token }}
|
github-token: ${{ github.token }}
|
||||||
set-pr-comment: 'true'
|
set-pr-comment: 'true'
|
||||||
set-github-status: 'true'
|
set-github-status: 'true'
|
||||||
|
cluster-url: ${{ secrets.IPFS_CLUSTER_URL }}
|
||||||
# Filebase unpacks and pins the CAR because of the import=car metadata
|
cluster-user: ${{ secrets.IPFS_CLUSTER_USER }}
|
||||||
- name: Upload CAR to Filebase
|
cluster-password: ${{ secrets.IPFS_CLUSTER_PASSWORD }}
|
||||||
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:
|
dnslink-update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in new issue
Block a user