ft: add ipfs workflow #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |