-
Notifications
You must be signed in to change notification settings - Fork 149
34 lines (32 loc) · 1.15 KB
/
release-documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Release documentation
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
on:
push:
branches:
- main
jobs:
release-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Node version
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
with:
version: 9.10.0
- name: Install dependencies
run: pnpm install --strict-peer-dependencies=false --no-frozen-lockfile
- name: Build Project Artifacts
run: pnpm build --filter=@starknet-react/docs
- name: Pull Vercel Environment Information
run: pnpm dlx vercel pull --cwd=docs --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: pnpm dlx vercel build --cwd=docs --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: pnpm dlx vercel deploy --cwd=docs --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}