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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [1.8.0] - 2026-01-14

### Changed

- Migrate from deprecated `@web3-storage/w3cli` to `@storacha/cli`. Existing workflows continue to work without changes.

## [1.7.0] - 2025-08-25

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This action encapsulates the established best practices for deploying static sit

## Storacha configuration

To set up the Storacha, you will need to install [w3cli](https://github.com/storacha/w3cli) and login with your Storacha account.
To set up Storacha, you will need to install [@storacha/cli](https://github.com/storacha/upload-service/tree/main/packages/cli) and login with your Storacha account.

Once logged in:

Expand All @@ -70,8 +70,8 @@ The signing key and proof will be used as [inputs](#inputs) to the action.
| `cluster-url` | IPFS Cluster URL to pass to `ipfs-cluster-ctl --host` |
| `cluster-user` | IPFS Cluster username for basic http auth |
| `cluster-password` | IPFS Cluster password for basic http auth |
| `storacha-key` | Storacha base64 encoded key to use to sign UCAN invocations. Create one using `w3 key create --json` (and use `key` from the output). See: https://github.com/storacha/w3cli#w3_principal |
| `storacha-proof` | Storacha Base64 encoded proof UCAN with capabilities for the space. Create one using `w3 delegation create did:key:DID_OF_KEY -c space/blob/add -c space/index/add -c filecoin/offer -c upload/add --base64` |
| `storacha-key` | Storacha base64 encoded key to use to sign UCAN invocations. Create one using `storacha key create --json` (and use `key` from the output). See: https://github.com/storacha/upload-service/tree/main/packages/cli#storacha_principal |
| `storacha-proof` | Storacha Base64 encoded proof UCAN with capabilities for the space. Create one using `storacha delegation create did:key:DID_OF_KEY -c space/blob/add -c space/index/add -c filecoin/offer -c upload/add --base64` |

> [!IMPORTANT]
> To use this action, you must configure the inputs for either: **Kubo, IPFS Cluster, or Storacha**.
Expand Down
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
Loading