Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 22 additions & 11 deletions skills/chatgpt-app-builder/references/deploy.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
# Deploy

Push code to a GitHub repo, then deploy via Alpic.
Deploy to Alpic using Alpic CLI.

Guide user through these steps:
## Parameters

1. **Push to GitHub** — commit and push code
- {path-to-project} is the path to the project directory. It is relative to the current working directory.
- When executing a command requiring `{path-to-project}`, check that you provided the correct path to the project.

2. **Login to Alpic** — go to [app.alpic.ai](https://app.alpic.ai), authenticate with GitHub
## Steps

3. **Import repo** — select organization and repository, import it
1. **Make sure the user is logged in to Alpic**

4. **Configure**:
- **Branch**: pick the branch to deploy from (pushes trigger redeploys)
- **Environment variables**
- **Build settings**: Alpic auto-detects, verify build command and output directory
Execute `npx alpic@latest login` to login to Alpic.

5. **Deploy** — click Deploy, get production URL
2. **Deploy to Alpic**

Updates deploy automatically on push to the configured branch.
If it's a first time deployment (absence of `.alpic/` folder in the project directory), **ask the user for the project name**.
Then, execute `npx alpic@latest deploy --yes --project-name {project-name} {path-to-project}`.

3. **Subsequent deployments**

For subsequent deployments (presence of `.alpic/` folder in the project directory), execute `npx alpic@latest deploy --yes {path-to-project}`.

4. **Setup GitHub integration**

If it's a new project, ask the user first if they want to setup git.
If yes:

- **Push to GitHub** — Commit and push code
- **Link to Alpic project** - Use `npx alpic@latest git connect --yes {path-to-project}`

Full docs: [docs.alpic.ai/quickstart](https://docs.alpic.ai/quickstart)