Deploy sanity studio #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |