From 6cf528749f13fce1301ebe3a330e654051d14399 Mon Sep 17 00:00:00 2001 From: Peter Vaiciulis <98245483+p5quared@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:43:13 -0700 Subject: [PATCH] add studio CI --- .github/workflows/deploy_sanity_studio.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy_sanity_studio.yml diff --git a/.github/workflows/deploy_sanity_studio.yml b/.github/workflows/deploy_sanity_studio.yml new file mode 100644 index 0000000..7dc5edd --- /dev/null +++ b/.github/workflows/deploy_sanity_studio.yml @@ -0,0 +1,24 @@ +name: Build && Deploy Sanity Studio + +on: + push: + branches: [main, dev] +jobs: + sanity-deploy: + name: Build & Deploy Sanity Studio + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 9 + - name: Install dependencies + run: | + cd sanity + pnpm i + pnpm i @sanity/cli + - name: Deploy Sanity Studio + run: | + set -e + cd sanity + SANITY_AUTH_TOKEN="${{ secrets.SANITY_DEPLOY }}" npx sanity deploy