Skip to content

repository_dispatch #286

repository_dispatch

repository_dispatch #286

Workflow file for this run

name: Deploy Sanity Studio
on:
push:
branches:
- master
paths:
- 'sanity/**'
- '.github/workflows/deploy_sanity.yml'
repository_dispatch:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy Sanity Application
steps:
- uses: actions/checkout@master
- name: NPM install
run: "npm install"
working-directory: 'sanity'
- name: Build app
run: "npx sanity build"
working-directory: 'sanity'
env:
SANITY_READ_TOKEN: ${{ secrets.SANITY_READ_TOKEN }}
- name: Deploy app
run: "npx sanity deploy"
working-directory: 'sanity'
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
- name: Deploy GraphQL API
run: "npx sanity graphql deploy"
working-directory: 'sanity'
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}