Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions .github/workflows/deploy-domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- run: npm ci && npm run build
- id: deploy
uses: shipstatic/action@v2
- uses: shipstatic/action@v2
with:
token: ${{ secrets.SHIP_TOKEN }}
path: ./dist
domain: ${{ vars.DOMAIN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: echo "Deployed to ${{ steps.deploy.outputs.url }}" >> "$GITHUB_STEP_SUMMARY"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Example workflows for the [ShipStatic GitHub Action](https://github.com/marketplace/actions/shipstatic) — a React + Vite app deployed to [action-example.shipstatic.com](https://action-example.shipstatic.com).

Every one of them writes a summary to its workflow run page — the deployment, its URL, the domain when one is linked, and for deploys made without an API key the claim link and expiry. Nothing to configure.

## [`deploy-no-account.yml`](.github/workflows/deploy-no-account.yml) — Free, No Account Needed

Push to `main` deploys instantly. No API key, no sign-up, no configuration — expires in 3 days.
Expand Down Expand Up @@ -72,19 +74,17 @@ jobs:
steps:
- uses: actions/checkout@v7
- run: npm ci && npm run build
- id: deploy
uses: shipstatic/action@v2
- uses: shipstatic/action@v2
with:
token: ${{ secrets.SHIP_TOKEN }}
path: ./dist
domain: ${{ vars.DOMAIN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: echo "Deployed to ${{ steps.deploy.outputs.url }}" >> "$GITHUB_STEP_SUMMARY"
```

## [`preview-pr.yml`](.github/workflows/preview-pr.yml) — PR Preview

Every pull request gets a preview deploy with the URL posted as a comment. Works without an API key — expires in 3 days.
Every pull request gets a preview deploy with the URL posted as a comment — one comment per PR, updated in place on every push rather than a new one each time. Works without an API key — expires in 3 days, and the comment carries the claim link that keeps it.

```yaml
name: Preview
Expand Down