Skip to content

Commit

Permalink
add studio CI
Browse files Browse the repository at this point in the history
  • Loading branch information
p5quared committed Aug 24, 2024
1 parent f41528f commit ee9024f
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/deploy_sanity_studio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy Sanity
on:
push:
branches: [master, dev]
jobs:
sanity-deploy:
runs-on: ubuntu-latest
name: Deploy Sanity
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
cd studio
yarn install
- name: Deploy Sanity Studio
run: |
cd studio
npx @sanity/cli deploy
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sanity/sanity.config.ts → studio/sanity.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const devOnlyPlugins = [getStartedPlugin()]

export default defineConfig({
name: 'default',
title: 'dimgrey-narwhal',
title: 'peterv.net',

projectId: 'x4wuwagv',
dataset: 'production',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ee9024f

Please sign in to comment.