Skip to content

solcreek/deploy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Creek Deploy Action

Deploy to the edge in seconds. No account required for sandbox previews.

Creek License

Quick Start

Sandbox preview (no account needed)

- uses: solcreek/deploy-action@v1
  with:
    dir: ./dist

Every PR gets a live preview URL. No signup, no API key.

Production deploy

- uses: solcreek/deploy-action@v1
  with:
    dir: ./dist
    token: ${{ secrets.CREEK_TOKEN }}

Examples

PR Preview with Comment

name: Preview
on: pull_request

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci && npm run build

      - uses: solcreek/deploy-action@v1
        id: creek
        with:
          dir: ./dist

      - uses: actions/github-script@v7
        with:
          script: |
            github.rest.issues.createComment({
              owner: context.repo.owner,
              repo: context.repo.repo,
              issue_number: context.issue.number,
              body: `**Creek Preview** — deployed in ${${{ steps.creek.outputs.duration }}}ms\n\n${{ steps.creek.outputs.url }}`
            })

Production on Push to Main

name: Deploy
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci && npm run build

      - uses: solcreek/deploy-action@v1
        id: creek
        with:
          dir: ./dist
          token: ${{ secrets.CREEK_TOKEN }}

      - run: echo "Deployed to ${{ steps.creek.outputs.url }}"

Auto-Detect Framework

# No dir needed — Creek detects your framework and build output
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: solcreek/deploy-action@v1

Creek auto-detects dist/, build/, out/, or reads creek.toml.

Demo Deploy (Connectivity Test)

- uses: solcreek/deploy-action@v1
  with:
    demo: true

Deploys a sample page to verify Creek is reachable. Useful for CI smoke tests.

Inputs

Input Required Default Description
dir No auto-detect Directory to deploy
token No Creek API key (get one). Omit for sandbox mode.
demo No false Deploy a sample site
protect No Password-protect this deployment

Outputs

Output Description
url Deployed URL
preview-url Preview URL (authenticated deploys only)
sandbox-id Sandbox ID (sandbox mode only)
deployment-id Deployment ID (authenticated deploys only)
duration Deploy duration in milliseconds
mode sandbox, production, or demo

Sandbox vs Production

Sandbox (no token) Production (with token)
Account required No Yes
TTL 60 minutes Permanent
Custom domain No Yes
Rate limit 10/hr Unlimited
Use case PR previews, demos Shipping to production

How It Works

This action runs npx creek deploy --json under the hood. The Creek CLI auto-detects your framework, collects build output, and deploys to Cloudflare's edge network.

  • Sandbox mode: Deploys to *.creeksandbox.com (no auth, 60 min TTL)
  • Production mode: Deploys to *.bycreek.com or your custom domain

Links

License

Apache 2.0

About

Deploy to the edge in seconds. GitHub Action for Creek.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors