In the UI, create a site, say
my-site, go to the Tokens tab and copy a token
my-site, go to the Settings tab, and copy the Site ID
Assuming your static site has been built into a directory named
public, run:npx -p "@getmeli/cli" meli upload \./public \--url http://localhost:80 \--site <site-id> \--token <site-token> \--branch "latest"
Your site is now live at
Point your domain to the site in meli. If you are pointing
sub.domain.comto a meli site, you can add a
CNAMEDNS record to point
my-site.meli.my-company.com. If you are pointing a primary domain (
domain.com), you have to create a DNS
Arecord ppointing to the IP where Meli serves your sites.
Add a repository secret named
MELI_TOKEN with a Meli token for your site, then update your build workflow: