Skip to content

Commit caf762b

Browse files
Remove build step - Stainless deploys automatically on push
This reduces workflow time from 18+ minutes to seconds Co-Authored-By: Warp <agent@warp.dev>
1 parent 9d8a73a commit caf762b

1 file changed

Lines changed: 2 additions & 36 deletions

File tree

.github/workflows/preview-deploy.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,46 +13,12 @@ env:
1313
STAINLESS_PROJECT: tiger-data-docs
1414

1515
jobs:
16-
build-and-preview:
17-
name: Build & Post Preview Link
16+
post-preview-link:
17+
name: Post Preview Link
1818
runs-on: ubuntu-latest
1919
permissions:
20-
contents: read
2120
pull-requests: write
2221
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v4
25-
26-
- name: Setup Node.js
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version: '20'
30-
31-
- name: Setup pnpm
32-
uses: pnpm/action-setup@v4
33-
with:
34-
version: 9
35-
36-
- name: Get pnpm store directory
37-
shell: bash
38-
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39-
40-
- name: Cache pnpm store
41-
uses: actions/cache@v4
42-
with:
43-
path: ${{ env.STORE_PATH }}
44-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45-
restore-keys: |
46-
${{ runner.os }}-pnpm-store-
47-
48-
- name: Install dependencies
49-
run: pnpm install --frozen-lockfile
50-
51-
- name: Build docs
52-
run: pnpm build
53-
env:
54-
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
55-
5622
- name: Generate preview URL
5723
id: preview-url
5824
run: |

0 commit comments

Comments
 (0)