To publish, you need to either download your site & host it manually, or enter your Github Token to publish to Github - this is the recommended option. Primo will create a new repository under your account or you can deploy to an existing repository.
Once you've deployed to your repository, you can publish your site to any modern web host & auto-deploy it when you publish updates to the repository from Primo.
- Go to Github settings > Generate new token.
- Give your token a name, select an expiration date (ideally 'No expiration') and select the repo permission.
- Copy + paste the generated token token into Primo & click 'Connect'.
- Once you're connected, you can choose to either deploy to an existing repo or create a new one.
The easiest way to get your Primo sites online is to deploy them to a Github repository, then sign up for a modern web host like Vercel, Netlify, or Render to publish your Github repository to the web. When you deploy changes to the repo from Primo, they'll be auto-published to the host without needing to set up additional CI/CD. Below, you can find specific instructions for each host.
Deploying to Vercel
Vercel is the recommended web host since it offers the most straightforward path to get your sites online.
- Create a new project
- Choose your Primo site's repo as the source
- Click 'Deploy'
Deploying to Netlify
- Under 'Sites', select 'Import from Git'
- Click 'Deploy with Github'
- Choose your Primo site's repo as the source
- Click 'Deploy sitename'
Deploying to Render
- From the dashboard, click 'New Static Site'
- Choose your Primo site's repo as the source
- For "Publish Directory", type "
./
" - Click 'Create Static Site'
Deploying to Github Pages
⚠️ Github Pages isn't recommended as a host due to conflicts with publishing to subdomains (e.g.mateomorris.github.io/blog
). All of the hosts listed above also have free personal plans, can be signed into with your Github account, and can be spun up just as quickly.
- Ensure your site's deployed repo is named "
yourgithubusername.github.io
" - After a moment, your site should be published to "
yourgithubusername.github.io
"