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 ddcd74f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy_sanity_studio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build && Deploy Sanity Studio

on:
push:
branches: [main, dev]
paths-ignore:
- "./web/**"
jobs:
sanity-deploy:
name: Build & Deploy Sanity Studio
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: |
cd sanity
npm install
npm install @sanity/cli
- name: Deploy Sanity Studio
run: |
set -e
cd sanity
SANITY_AUTH_TOKEN="${{ secrets.SANITY_DEPLOY }}" npx sanity deploy

0 comments on commit ddcd74f

Please sign in to comment.