Skip to content

ft: add ipfs workflow #7

ft: add ipfs workflow

ft: add ipfs workflow #7

Workflow file for this run

name: Deploy to IPFS
permissions:
contents: read
pull-requests: write
statuses: write
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: npm i
- name: Build project
run: NEXT_PUBLIC_PRIVY_APP_ID=clwko6rul0a5r10xnb2ikkjhd npm run build
- name: Deploy to IPFS
uses: ipfs/ipfs-deploy-action@v1.7.0
id: deploy
with:
path-to-deploy: dist # Change this to your build output directory
storacha-key: ${{ secrets.STORACHA_KEY }}
storacha-proof: ${{ secrets.STORACHA_PROOF }}
github-token: ${{ github.token }}