Skip to content

Commit

Permalink
ci: deploy docs on releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostrider-05 committed Feb 10, 2025
1 parent 79fda45 commit 21e048b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ name: Deploy
on:
push:
paths:
# Examples
- 'examples/cloudflare-webhook/**'
# Documentation
- 'docs/**'
- 'apps/worker-docs/**'
# Trigger when this file is updated
- '.github/workflows/deploy.yml'
# Trigger a new deploy when a release is made
- '.release-please-manifest.json'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
4 changes: 2 additions & 2 deletions docs/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const query = QueryBuilder.campaign

const payload = await client.fetchCampaign('campaign_id', query)
// ^? { data: { attributes: { patron_count: number } }, ... }
const campaign = await client.normalized.fetchCampaign('campaign_id', query)
// ^? { patron_count: number, id: string, type: Type.Campaign }
const campaign = await client.simplified.fetchCampaign('campaign_id', query)
// ^? { patronCount: number, id: string, type: Type.Campaign }

// #endregion readme
// @ts-expect-error duplicate-imports
Expand Down

0 comments on commit 21e048b

Please sign in to comment.