Zipped.devDocs

GitHub Action deploy

Deploy a ZIP or HTML file to a Zipped.dev site from GitHub Actions using the official composite action and a Freelancer+ API key.

Use the Zipped.dev deploy action when CI should republish a site after every push. The action is a thin wrapper around POST /api/v1/sites/:id/deploy and needs a paid API key with the sites:write scope.

Prerequisites

  1. A site already created in the dashboard (or via POST /api/v1/sites).
  2. An API key from Settings → API keys on app.zipped.dev (Freelancer, Studio, or Agency).
  3. The site id from the dashboard or from GET /api/v1/sites.

Workflow example

The action lives in the product repo at deploy-action/. After you publish that folder to a public GitHub repository, point uses at that repo. Until then, copy the folder into your workflow repo and reference it locally:

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

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Zip site
        run: zip -r site.zip dist
      - name: Deploy to Zipped.dev
        uses: ./deploy-action
        with:
          api-key: ${{ secrets.ZIPPED_API_KEY }}
          site-id: ${{ vars.ZIPPED_SITE_ID }}
          file: site.zip

Optional input api-base defaults to https://app.zipped.dev/api/v1. For local or staging API hosts, set it explicitly.

Store the API key as a repository secret. Free plans cannot call the API (403 api_not_available).