GitHub Actions
-
Create a deploy token in the dashboard with the account or organization selected that owns the app.
-
Store it in the repository (or organization) as the secret
FLITZY_TOKEN:Terminal window gh secret set FLITZY_TOKEN -
Add
.github/workflows/deploy.yml:name: Deployon:push:branches: [main]concurrency: deployjobs:deploy:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- id: flitzyuses: vibe-deploy/deploy-action@v1with:token: ${{ secrets.FLITZY_TOKEN }}- run: echo "Live at ${{ steps.flitzy.outputs.url }}"
The action installs the flitzy CLI and runs flitzy deploy exactly as you would. A failed deploy fails the job and adds flitzy status to the log. The deploy history shows these deploys as coming from github-actions, with the commit.
Inputs
Section titled “Inputs”| Input | Default | |
|---|---|---|
token |
required | the deploy token |
path |
. |
folder to deploy, for monorepos |
name |
from flitzy.json |
app name |
env |
KEY=VALUE lines, set before the deploy |
Output: url, the app’s address.
- Commit
flitzy.json, so CI deploys to the same app name you use locally. - A token of a different account gets 403 belongs to another user: the token’s account or organization must own the app.
concurrency: deploystops two pushes from deploying at the same time.
Without the action
Section titled “Without the action”The action’s repository is private for now, so it works only in repositories of the vibe-deploy organization. Anywhere else, run the CLI directly:
- uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 - run: npm install -g https://dashboard.flitzy.app/flitzy-cli.tgz - run: flitzy deploy env: FLITZY_TOKEN: ${{ secrets.FLITZY_TOKEN }}