Merge pull request #42 from sanity-io/facelift #58
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: | |
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 |