Skip to content

Merge pull request #42 from sanity-io/facelift #58

Merge pull request #42 from sanity-io/facelift

Merge pull request #42 from sanity-io/facelift #58

Workflow file for this run

name: Deploy Sanity Studio
on:
push:
branches: [main]
paths-ignore:
- 'web/**'
jobs:
sanity-deploy:
runs-on: ubuntu-latest
name: Deploy Sanity
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install dependencies
run: |
cd studio
npm install
- name: Deploy
env:
SANITY_AUTH_TOKEN: ${{ secrets.STUDIO_DEPLOY }}
run: |
set -e
cd studio
SANITY_AUTH_TOKEN="${{ secrets.STUDIO_DEPLOY }}" SANITY_STUDIO_GOOGLE_TRANSLATE_API_KEY="${{ secrets.SANITY_STUDIO_GOOGLE_TRANSLATE_API_KEY }}" SANITY_STUDIO_PREVIEW_SECRET="${{ secrets.SANITY_STUDIO_PREVIEW_SECRET }}" SANITY_STUDIO_PREVIEW_URL="${{ secrets.SANITY_STUDIO_PREVIEW_URL }}" npx sanity@latest deploy