-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.17 KB
/
sanity-deploy.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
35
36
name: Deploy Sanity
on:
push:
branches: [main]
paths: ['studio/**']
jobs:
sanity-deploy:
runs-on: ubuntu-latest
name: Deploy Sanity
environment: prod
defaults:
run:
working-directory: ./studio
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Packages
run: pnpm install
- name: Deploy Sanity
run: pnpm run deploy
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
SANITY_STUDIO_PROJECT_ID: ${{ secrets.SANITY_STUDIO_PROJECT_ID }}
SANITY_STUDIO_DATASET: ${{ secrets.SANITY_STUDIO_DATASET }}
SANITY_STUDIO_PREVIEW_URL: ${{ secrets.SANITY_STUDIO_PREVIEW_URL }}
SANITY_STUDIO_APP_BASE_URL: ${{ secrets.SANITY_STUDIO_APP_BASE_URL }}
SANITY_STUDIO_APP_API_TOKEN: ${{ secrets.SANITY_STUDIO_APP_API_TOKEN }}
SANITY_STUDIO_SUPABASE_URL: ${{ secrets.SANITY_STUDIO_SUPABASE_URL }}
SANITY_STUDIO_SUPABASE_KEY: ${{ secrets.SANITY_STUDIO_SUPABASE_KEY }}
SANITY_STUDIO_SLACK_HOOK: ${{ secrets.SANITY_STUDIO_SLACK_HOOK }}