Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: update to work with w3up api #89

Merged
merged 13 commits into from
Jan 17, 2024
Merged

feat!: update to work with w3up api #89

merged 13 commits into from
Jan 17, 2024

Commits on Jan 16, 2024

  1. feat!: update to work with w3up api

    Rebuild of the github action to work with the new w3up web3.storage api.
    
    [`w3cli`](https://github.com/web3-storage/w3cli) does everything we need to upload files to web3.storage, so this action now provides a thin wrapper around that cli in the form of a composite action.
    
    Auth is based on UCANs now. Use w3cli to create a signing key for this action to use, and create a ucan that delegates upload abilities to that key.
    
    - input: `web3_token` has been removed, as token based auth as been removed.
      - set `secret_key` to a base64 encoded siging key you create via `w3 key create`.
      - set `proof` to the a base64 CAR encoded UCAN delegating capabilities to the secret_key's DID.
    - input: `wrap_with_directory` has been removed. w3cli does not wrap directories in directories by default now. Only single files get wrapped to preserve their filename.
      - set `no_wrap: 'true'` to disable the wrapping of single files.
    - input: `web3_api` has been removed. Targeting other services is not currently supported. Open an issue if you need that.
    
    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    0233765 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into v3

    olizilla authored Jan 16, 2024
    Configuration menu
    Copy the full SHA
    395c2ed View commit details
    Browse the repository at this point in the history
  3. chore: replace deprecated calls to set-output

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    636dfd4 View commit details
    Browse the repository at this point in the history
  4. docs: Apply suggestions from code review

    Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
    olizilla and Alan Shaw authored Jan 16, 2024
    Configuration menu
    Copy the full SHA
    506ecdf View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. docs: explain how to generate secret_key and proof from w3cli

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    2919f32 View commit details
    Browse the repository at this point in the history
  2. chore: tweak copy. test no_wrap

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    ac0f87e View commit details
    Browse the repository at this point in the history
  3. fix: no_wrap handling and test

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    2c07a4e View commit details
    Browse the repository at this point in the history
  4. chore: fix wrap and hidden args

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    8fcd052 View commit details
    Browse the repository at this point in the history
  5. fix: interpolation

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    0dd07c7 View commit details
    Browse the repository at this point in the history
  6. fix: test expectations

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    70ca455 View commit details
    Browse the repository at this point in the history
  7. chore: test hidden=true

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    fcfcc0b View commit details
    Browse the repository at this point in the history
  8. fix: test expectation

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    a9f7566 View commit details
    Browse the repository at this point in the history
  9. chore: use published w3cli module now fixes are in

    License: MIT
    Signed-off-by: Oli Evans <oli@protocol.ai>
    olizilla committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    89d29ac View commit details
    Browse the repository at this point in the history