Skip to content

Deploy sanity studio #3

Deploy sanity studio

Deploy sanity studio #3

name: Deploy sanity studio
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'studio/**/*'
- '!./README.md'
permissions:
id-token: write
packages: write
jobs:
deploy:
runs-on: ubuntu-latest
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY_TOKEN }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Deploy Studio
run: pnpm run deploy