Skip to content
Merged
Changes from 1 commit
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
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ inputs:
description: 'Custom name for the pin. If unset, defaults to "{repo-name}-{commit-sha-short}"'
required: false
storacha-key:
description: 'Storacha base64 encoded key to use to sign UCAN invocations. Create one using `w3 key create --json`. See: https://github.com/storacha/w3cli#w3_principal'
description: 'Storacha base64 encoded key to use to sign UCAN invocations. Create one using `storacha key create --json`. See: https://github.com/storacha/upload-service/tree/main/packages/cli#storacha_principal'
required: false
storacha-proof:
description: 'Storacha Base64 encoded proof UCAN with capabilities for the space `w3 delegation create did:key:DID_OF_KEY -c space/blob/add -c space/index/add -c filecoin/offer -c upload/add --base64`'
description: 'Storacha Base64 encoded proof UCAN with capabilities for the space `storacha delegation create did:key:DID_OF_KEY -c space/blob/add -c space/index/add -c filecoin/offer -c upload/add --base64`'
required: false
pinata-pinning-url:
description: 'Pinata Pinning Service URL'
Expand Down Expand Up @@ -178,12 +178,12 @@ runs:
if: ${{ inputs.storacha-key != '' && inputs.storacha-proof != ''}}
shell: bash
env:
W3_PRINCIPAL: ${{ inputs.storacha-key }}
STORACHA_PRINCIPAL: ${{ inputs.storacha-key }}
run: |
npm install -g @web3-storage/w3cli
npm install -g @storacha/cli
echo "ℹ️ Uploading CAR with CID ${{ steps.merkleize.outputs.cid }} to Storacha"
w3 space add ${{ inputs.storacha-proof }}
if ! w3 up --car build.car; then
storacha space add ${{ inputs.storacha-proof }}
if ! storacha up --car build.car; then
echo "::error::Failed to upload to Storacha"
exit 1
else
Expand Down