Skip to content
v2.7

Publish

How to upload the site code (folder, .zip or .tar.gz), with a build or already built, how to publish from a GitHub repository (with a preview per pull request) or from a template, and what happens next.

Each upload becomes a deployment: Owbase stores the package, runs the install and the build and, when it succeeds, puts the deployment live at the site’s address. The code arrives in one of three ways:

  • uploaded by you, from the Deployments → Upload code tab or with the CLI (the next sections, up to After the upload);
  • from a GitHub repository connected in the Git tab: each push becomes a deployment, and each pull request can get a preview address (from Git);
  • from a template in the Owbase catalog, when you create the site (from a template).

In every case, the build uses the site’s install and build commands and output folder, and the deployment shows up in the Deployments tab.

A folder, a .zip or a .tar.gz, up to 30 MB compressed:

  • Folder: node_modules/ and .git/ (at any level), macOS and Windows junk (__MACOSX/, .DS_Store, ._*, Thumbs.db) and everything the .gitignore at the folder root lists are left out: the build reinstalls the dependencies;
  • .zip: if there is a single folder at the root, it is removed (its content becomes the root) and macOS junk is dropped. Nothing else is filtered: node_modules/, .git/ and the .gitignore are not applied, so remove them before compressing. A .zip with a symbolic link is refused;
  • .tar.gz: goes as is, with no filtering.

In any format, paths that leave the root (.. or absolute) are refused.

Upload the project (with the package.json and, preferably, the package-lock.json): Owbase runs the site’s install and build commands and publishes what ends up in the output directory.

my-site/
├── package.json
├── package-lock.json
├── src/ the site code
└── public/ static files (images, favicon)

With the owbase CLI, owbase push site uploads the site folder with these same rules and waits for the build: it is the way to publish from the terminal or CI.

If you already have the generated site (the dist/ folder from a build on your machine, or hand-written HTML), turn on Already built, no build step before uploading:

  • nothing is installed or compiled;
  • when uploading a folder, the .gitignore doesn’t apply (the build folder is usually listed in it); node_modules/, .git/ and system junk are still left out. .zip and .tar.gz follow the rules above;
  • the output directory is the root of what you uploaded.

Upload the contents of the output folder (what is inside dist/, for example). The option applies only to that upload: the site’s settings don’t change.

With Activate when ready on (the default), the deployment goes live as soon as the build finishes. The list shows the status (waiting, processing, building, ready, failed, canceled), the build time and the size; Log shows the build output, which updates while it runs. In the list you can also:

  • Activate a previous deployment that is ready: the address serves it immediately;
  • Cancel build of a deployment that is queued or building;
  • Download the uploaded code;
  • Delete a deployment that isn’t active.

Changed a setting or a variable? The console warns you (“Settings or variables changed”) and offers Redeploy, which rebuilds the active code with the site’s current settings (commands, output directory, variables).

A site’s build log may include screenshot-capture lines. The console doesn’t show that capture, and the lines don’t indicate a problem.

Connect a GitHub repository to the site and every push publishes on its own. In the site, open the Git tab:

  1. Install on GitHub: installs the Owbase app on your GitHub account or organization. It only reads the code of the repositories you choose, writes each deployment’s status on the commit (✓ or ✗) and comments on pull requests with the preview link. If the browser blocks the GitHub window, allow pop-ups.
  2. Repository: pick one from the list. It shows the repositories the app can access; to give it access to another one, use Manage access. With the app on more than one account, pick the GitHub account.
  3. Configuration: the production branch (default main), the root folder (in a monorepo, the folder with the site’s package.json) and the options below. Use Connect and publish.
Option What it does
Automatic deploy on every push A push to the production branch creates a deployment, which goes live when the build passes. Turned off, no push creates a deployment (the other options are turned off too).
Preview per pull request Each pull request opened against the production branch gets its own address, which uses the same production variables. Turned off, only the production branch creates deployments.
Comment on the pull request Posts the preview link and status as a comment on the pull request.
Respect [skip ci] Always on: commits with [skip ci] in the message don’t create a deployment.

Once connected, the Git tab shows:

  • Commits: the status of each commit’s deployment (live in production, ready, building, failed, queued, canceled, skipped), with search and filters by branch and status. Publish puts a commit in production;
  • Pull requests: the open pull requests, the status of their preview and its address;
  • Configure: the same options as the connection, and Disconnect. Once disconnected, pushes stop creating deployments and open previews go offline; the active deployment stays in production and the app stays installed on GitHub (remove it there if you want).

The Viewer role only sees the configuration: it can’t install the app or connect repositories.

In Sites, Start from a template opens the Owbase catalog: ready-made sites that already talk to your project, such as a landing page with a waitlist, a store with Next.js, a blog with Astro, an admin dashboard and a portfolio with SvelteKit. Each template shows what it does, the code and the variables (View the code on GitHub opens the full code).

  1. Choose the template and use Use this template.
  2. Give it a name and fill in the required variables.
  3. Use Create and publish: Owbase creates the site with the template’s framework, commands and variables and publishes the code.

With the GitHub app installed in the project, the Create a GitHub repository option (on by default) creates a repository on the chosen account, public or private, copies the template into it and connects the site: from then on, every push to main publishes on its own. Without the app, the site is published straight from the template, and you can connect a repository later from Git. To skip templates, Start from scratch takes you to the regular site creation.

Was this page helpful?