Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

ci(fallback): add Filebase IPFS deployment workflow#131

Closed
remiroyc wants to merge 1 commit into
mainfrom
filebase-migration
Closed

ci(fallback): add Filebase IPFS deployment workflow#131
remiroyc wants to merge 1 commit into
mainfrom
filebase-migration

Conversation

@remiroyc
Copy link
Copy Markdown
Collaborator

Summary

  • Add .github/workflows/filebase-deploy.yaml that, on push to release, builds the fallback app, uploads it to a Filebase IPFS bucket as a CAR via ipshipyard/ipfs-deploy-action, and publishes the new CID to the Filebase Site's IPNS so morpho-fallback-app.myfilebase.site auto-updates.
  • Leave the existing Fleek workflow (fleek-deploy.yaml) untouched — it will be removed in a follow-up PR once Filebase is validated end-to-end. Both pipelines will run in parallel on the next release push.
  • Wire up two small app changes that are required for any IPFS hosting (benefit both Fleek and Filebase):
    • base: "./" in apps/fallback/vite.config.ts — assets resolve correctly on path gateways like ipfs.filebase.io/ipfs/<cid>/...
    • VITE_IS_IPFS_BUILD flag hides the bottom-right "IPFS" info button when the build is IPFS-targeted (the button surfaces alternative IPFS deployments — meaningless when you're already on one)

Required repo secrets (new)

Before the first run on release, add under Settings → Secrets and variables → Actions:

  • FILEBASE_ACCESS_KEY — S3 access key from the Filebase console
  • FILEBASE_SECRET_KEY — S3 secret key
  • FILEBASE_BUCKET — bucket name (morpho-fallback-app)

The existing FLEEK_TOKEN / FLEEK_PROJECT_ID secrets stay in use for the Fleek workflow.

Test plan

  • CAR upload + IPNS publish validated locally against the production Site (CID bafybeigsuzt4x7cme7lvphp6uzmzmv2r2xou7uvsnhvbdsf6rzodvbewpq renders the app correctly on the path gateway, IPFS button hidden)
  • Add the three FILEBASE_* secrets to the repo
  • Merge, push to release, verify the workflow succeeds and morpho-fallback-app.myfilebase.site reflects the new CID
  • Confirm the Fleek workflow still runs alongside and produces the same build
  • Follow-up PR: remove Fleek workflow, config, CLI devDependency, and related lockfile entries

🤖 Generated with Claude Code

Adds a GitHub Actions workflow that builds the fallback app, uploads
it to a Filebase IPFS bucket as a CAR, and publishes the resulting
CID to the Site's IPNS so `morpho-fallback-app.myfilebase.site`
auto-updates.

The existing Fleek workflow is left in place and will be removed in
a follow-up PR once Filebase is validated end-to-end.

App changes required for IPFS hosting:
- `base: "./"` in Vite config so asset paths resolve on path gateways
- `VITE_IS_IPFS_BUILD` env flag hides the IPFS info button on
  IPFS-targeted builds (the button is meaningful only on Vercel)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lite-app Error Error Apr 23, 2026 4:35pm

Request Review

@remiroyc remiroyc self-assigned this Apr 23, 2026
@remiroyc remiroyc requested a review from alexbensimon April 27, 2026 16:21
@remiroyc remiroyc closed this Apr 27, 2026
@remiroyc remiroyc deleted the filebase-migration branch April 27, 2026 16:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant