This GitHub Action automatically deploys your built application to IPFS using Pinata.
- Go to Pinata Cloud and create a free account
- Navigate to API Keys
- Create a new API key with Files read and write permissions
- Copy your JWT token
- Go to your GitHub repository
- Navigate to Settings → Secrets and variables → Actions
- Click New repository secret
- Name:
PINATA_JWT - Value: Your Pinata JWT token
- Click Add secret
- Go to your repository's Actions tab
- Select Deploy to IPFS workflow
- Click Run workflow
- Choose the branch you want to deploy
- Optionally provide a custom pin name
- Click Run workflow
- ✅ Manual trigger only (no automatic deployments)
- ✅ Branch selection input
- ✅ Custom pin naming
- ✅ Automatic old version cleanup
- ✅ Detailed deployment summary
- ✅ IPFS hash and gateway URL outputs
After successful deployment, you'll get:
- IPFS Hash: The content-addressed hash of your deployment
- Gateway URL: Direct link to access your content via IPFS
- Deployment Summary: Detailed information about the upload
- Ensure your
PINATA_JWTsecret is correctly set - Check that your build process creates a
dist/directory - Verify the branch you're trying to deploy exists
- Review the Actions logs for detailed error messages