Skip to content

Commit 7b8dd1f

Browse files
committed
deploy prod page only after a release
1 parent 5adb3a0 commit 7b8dd1f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/docs.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy production docs
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- "changeset-release/main"
9+
10+
jobs:
11+
deploy-production:
12+
runs-on: ubuntu-latest
13+
if: github.event.pull_request.merged == true
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup
19+
uses: ./.github/setup
20+
21+
- name: Install Vercel CLI
22+
run: npm install --global vercel@latest
23+
- name: Deploy to Vercel
24+
run: vercel --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)