Skip to content

Commit

Permalink
add studio CI
Browse files Browse the repository at this point in the history
  • Loading branch information
p5quared committed Aug 24, 2024
1 parent f41528f commit 6cf5287
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy_sanity_studio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build && Deploy Sanity Studio

on:
push:
branches: [main, dev]
jobs:
sanity-deploy:
name: Build & Deploy Sanity Studio
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: |
cd sanity
pnpm i
pnpm i @sanity/cli
- name: Deploy Sanity Studio
run: |
set -e
cd sanity
SANITY_AUTH_TOKEN="${{ secrets.SANITY_DEPLOY }}" npx sanity deploy

0 comments on commit 6cf5287

Please sign in to comment.