Shipstatic
ActionsTags
(2)GitHub Action for ShipStatic — deploy static websites, landing pages, and prototypes instantly from CI.
name: Deploy
on: push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: shipstatic/action@v1
with:
path: ./distYour site is live instantly on *.shipstatic.com. No API key, no sign-up, no configuration.
Deployments without an API key are public and expire in 3 days. The claim output contains a URL to keep the site permanently.
For permanent deployments and full control over your sites and domains, get a free API key from my.shipstatic.com/api-key:
- Get a free key at my.shipstatic.com/api-key
- Add it as a repository secret named
SHIP_API_KEY(Settings > Secrets and variables > Actions)
name: Deploy
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
deployments: write
pull-requests: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: shipstatic/action@v1
with:
api-key: ${{ secrets.SHIP_API_KEY }}
path: ./dist
domain: www.example.com
github-token: ${{ secrets.GITHUB_TOKEN }}| Input | Required | Default | Description |
|---|---|---|---|
api-key |
No | — | ShipStatic API key for permanent deployments |
path |
No | . |
Directory to deploy |
domain |
No | — | Domain to link (requires api-key) |
github-token |
No | — | GitHub token for PR comments and deployment tracking |
The github-token input enables two features:
- PR comments — posts the deployment URL as a comment on pull requests
- GitHub Deployments — creates deployment objects visible in the repo sidebar
Use the automatic ${{ secrets.GITHUB_TOKEN }} — no extra secrets needed. Your workflow needs these permissions:
permissions:
contents: read
deployments: write
pull-requests: write| Output | Description |
|---|---|
id |
Deployment ID (e.g. happy-cat-abc1234.shipstatic.com) |
url |
Deployment URL (e.g. https://happy-cat-abc1234.shipstatic.com) |
claim |
Claim URL for public deployments (visit to keep permanently) |
See action-example for a complete working example with React + Vite, including production deploys with custom domains and PR preview comments.
MIT
Shipstatic is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.